On Fri, Jun 01, 2018 at 04:10:25PM +0800, junyan...@gmx.com wrote: > From: Junyan He <junyan...@intel.com> > > When QEMU emulates vNVDIMM labels and migrates vNVDIMM devices, it > needs to know whether the backend storage is a real persistent memory, > in order to decide whether special operations should be performed to > ensure the data persistence. > > This boolean option 'pmem' allows users to specify whether the backend > storage of memory-backend-file is a real persistent memory. If > 'pmem=on', QEMU will set the flag RAM_PMEM in the RAM block of the > corresponding memory region. > > Signed-off-by: Junyan He <junyan...@intel.com> > Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com> > --- > backends/hostmem-file.c | 27 ++++++++++++++++++++++++++- > docs/nvdimm.txt | 14 ++++++++++++++ > exec.c | 9 +++++++++ > include/exec/memory.h | 6 ++++++ > include/exec/ram_addr.h | 3 +++ > qemu-options.hx | 7 +++++++ > 6 files changed, 65 insertions(+), 1 deletion(-)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature