[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V6 2/7] memory, exec: switch file ram allocation
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH V6 2/7] memory, exec: switch file ram allocation functions to 'flags' parameters |
Date: |
Tue, 5 Jun 2018 12:40:25 +0100 |
User-agent: |
Mutt/1.9.5 (2018-04-13) |
On Fri, Jun 01, 2018 at 04:10:24PM +0800, address@hidden wrote:
> From: Junyan He <address@hidden>
>
> As more flag parameters besides the existing 'share' are going to be
> added to following functions
> memory_region_init_ram_from_file
> qemu_ram_alloc_from_fd
> qemu_ram_alloc_from_file
> let's switch them to use the 'flags' parameters so as to ease future
> flag additions.
>
> The existing 'share' flag is converted to the RAM_SHARED bit in ram_flags,
> and other flag bits are ignored by above functions right now.
>
> Signed-off-by: Junyan He <address@hidden>
> Signed-off-by: Haozhong Zhang <address@hidden>
> ---
> backends/hostmem-file.c | 3 ++-
> exec.c | 10 +++++-----
> include/exec/memory.h | 8 ++++++--
> include/exec/ram_addr.h | 25 +++++++++++++++++++++++--
> memory.c | 8 +++++---
> numa.c | 2 +-
> 6 files changed, 42 insertions(+), 14 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature
- [Qemu-devel] [PATCH V6 0/7] nvdimm: guarantee persistence of QEMU writes to persistent memory, junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 1/7] memory, exec: Expose all memory block related flags., junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 2/7] memory, exec: switch file ram allocation functions to 'flags' parameters, junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 3/7] hostmem-file: add the 'pmem' option, junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 4/7] configure: add libpmem support, junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 5/7] mem/nvdimm: ensure write persistence to PMEM in label emulation, junyan . he, 2018/06/01
- [Qemu-devel] [PATCH V6 6/7] migration/ram: Add check and info message to nvdimm post copy., junyan . he, 2018/06/01