[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [Qemu-devel] [PATCH v6 11/26] memory: Access MemoryRegion with MemOp
- To: tony.nguyen@xxxxxx, qemu-devel@xxxxxxxxxx
- From: Richard Henderson <richard.henderson@xxxxxxxxxx>
- Date: Wed, 7 Aug 2019 08:38:25 -0700
- Cc: fam@xxxxxxxxxx, peter.maydell@xxxxxxxxxx, walling@xxxxxxxxxxxxx, dmitry.fleytman@xxxxxxxxx, imammedo@xxxxxxxxxx, sagark@xxxxxxxxxxxxxxxxx, david@xxxxxxxxxx, jasowang@xxxxxxxxxx, palmer@xxxxxxxxxx, mark.cave-ayland@xxxxxxxxxxxx, laurent@xxxxxxxxx, keith.busch@xxxxxxxxx, jcmvbkbc@xxxxxxxxx, frederic.konrad@xxxxxxxxxxx, pbonzini@xxxxxxxxxx, kraxel@xxxxxxxxxx, edgar.iglesias@xxxxxxxxx, gxt@xxxxxxxxxxxxxxx, pburton@xxxxxxxxxxxx, marex@xxxxxxx, robh@xxxxxxxxxx, hare@xxxxxxxx, sstabellini@xxxxxxxxxx, berto@xxxxxxxxxx, proljc@xxxxxxxxx, qemu-block@xxxxxxxxxx, arikalo@xxxxxxxxxxxx, jslaby@xxxxxxx, deller@xxxxxx, mst@xxxxxxxxxx, magnus.damm@xxxxxxxxx, pasic@xxxxxxxxxxxxx, borntraeger@xxxxxxxxxx, mreitz@xxxxxxxxxx, hpoussin@xxxxxxxxxxx, joel@xxxxxxxxx, anthony.perard@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, rth@xxxxxxxxxxx, philmd@xxxxxxxxxx, green@xxxxxxxxxxxxxx, atar4qemu@xxxxxxxxx, antonynpavlov@xxxxxxxxx, jiri@xxxxxxxxxxx, ehabkost@xxxxxxxxxx, minyard@xxxxxxx, sw@xxxxxxxxxxx, alistair@xxxxxxxxxxxxx, chouteau@xxxxxxxxxxx, b.galvani@xxxxxxxxx, eric.auger@xxxxxxxxxx, qemu-s390x@xxxxxxxxxx, qemu-arm@xxxxxxxxxx, peter.chubb@xxxxxxxxxxxx, yuval.shaia@xxxxxxxxxx, stefanha@xxxxxxxxxx, marcandre.lureau@xxxxxxxxxx, shorne@xxxxxxxxx, sundeep.lkml@xxxxxxxxx, jsnow@xxxxxxxxxx, david@xxxxxxxxxxxxxxxxxxxxx, kwolf@xxxxxxxxxx, crwulff@xxxxxxxxx, qemu-riscv@xxxxxxxxxx, xiaoguangrong.eric@xxxxxxxxx, i.mitsyanko@xxxxxxxxx, lersek@xxxxxxxxxx, cohuck@xxxxxxxxxx, alex.williamson@xxxxxxxxxx, Andrew.Baumann@xxxxxxxxxxxxx, jcd@xxxxxxxxxxxxxxx, andrew@xxxxxxxx, michael@xxxxxxxx, paul.durrant@xxxxxxxxxx, qemu-ppc@xxxxxxxxxx, huth@xxxxxxxxxxxxx, amarkovic@xxxxxxxxxxxx, kbastian@xxxxxxxxxxxxxxxxxxxxx, jan.kiszka@xxxxxx, stefanb@xxxxxxxxxxxxx, andrew.smirnov@xxxxxxxxx, aurelien@xxxxxxxxxxx, clg@xxxxxxxx
- Delivery-date: Wed, 07 Aug 2019 15:38:42 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Openpgp: preference=signencrypt
On 8/7/19 1:29 AM, tony.nguyen@xxxxxx wrote:
> Convert memory_region_dispatch_{read|write} operand "unsigned size"
> into a "MemOp op".
>
> Signed-off-by: Tony Nguyen <tony.nguyen@xxxxxx>
> ---
> include/exec/memop.h | 18 +++++++++++++-----
> include/exec/memory.h | 9 +++++----
> memory.c | 7 +++++--
> 3 files changed, 23 insertions(+), 11 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@xxxxxxxxxx>
> +/* MemOp to size in bytes. */
> +static inline unsigned memop_size(MemOp op)
> +{
> + return 1 << ((op) & MO_SIZE);
> +}
s/(op)/op/
This is no longer a macro requiring such things.
r~
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|