[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 4/7 V10] hostmem-file: add the 'pmem' option
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH 4/7 V10] hostmem-file: add the 'pmem' option |
Date: |
Tue, 17 Jul 2018 09:46:14 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 |
On 07/16/2018 11:32 PM, address@hidden wrote:
> @@ -34,6 +35,7 @@ struct HostMemoryBackendFile {
> bool discard_data;
> char *mem_path;
> uint64_t align;
> + bool is_pmem;
> };
Sort all the bool's to the end?
> + /* Just support these ram flags by now. */
> + assert(ram_flags == 0 || (ram_flags & (RAM_SHARED | RAM_PMEM)));
Surely assert((ram_flags & ~(RAM_SHARED | RAM_PMEM)) == 0).
> +If the vNVDIMM backend is on the host persistent memory that can be
Grammar nit: "is in host persistent memory".
> +++ b/qemu-options.hx
> @@ -4070,6 +4070,13 @@ requires an alignment different than the default one
> used by QEMU, eg
> the device DAX /dev/dax0.0 requires 2M alignment rather than 4K. In
> such cases, users can specify the required alignment via this option.
>
> +The @option{pmem} option specifies whether the backing file specified
> +by @option{mem-path} is on the persistent memory that can be accessed
Likewise.
r~
- [Qemu-devel] [PATCH 0/7 V10] nvdimm: guarantee persistence of QEMU writes to persistent memory, junyan . he, 2018/07/17
- [Qemu-devel] [PATCH 1/7 V10] memory, exec: Expose all memory block related flags., junyan . he, 2018/07/17
- [Qemu-devel] [PATCH 3/7 V10] configure: add libpmem support, junyan . he, 2018/07/17
- [Qemu-devel] [PATCH 2/7 V10] memory, exec: switch file ram allocation functions to 'flags' parameters, junyan . he, 2018/07/17
- [Qemu-devel] [PATCH 4/7 V10] hostmem-file: add the 'pmem' option, junyan . he, 2018/07/17
- Re: [Qemu-devel] [PATCH 4/7 V10] hostmem-file: add the 'pmem' option,
Richard Henderson <=
- [Qemu-devel] [PATCH 5/7 V10] mem/nvdimm: ensure write persistence to PMEM in label emulation, junyan . he, 2018/07/17
- [Qemu-devel] [PATCH 6/7 V10] migration/ram: Add check and info message to nvdimm post copy., junyan . he, 2018/07/17
- [Qemu-devel] [PATCH 7/7 V10] migration/ram: ensure write persistence on loading all data to PMEM., junyan . he, 2018/07/17