[Qemu-devel] [PATCH 0/2] mem/nvdimm: ensure persistence of QEMU writes to real NVDIMM device

Haozhong Zhang posted 2 patches 7 years, 10 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20171225010611.32621-1-haozhong.zhang@intel.com
Test checkpatch passed
Test docker passed
Test ppc passed
Test s390x passed
hw/mem/nvdimm.c     |   3 ++
include/qemu/pmem.h |  25 ++++++++++
util/Makefile.objs  |   1 +
util/pmem.c         | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 161 insertions(+)
create mode 100644 include/qemu/pmem.h
create mode 100644 util/pmem.c
[Qemu-devel] [PATCH 0/2] mem/nvdimm: ensure persistence of QEMU writes to real NVDIMM device
Posted by Haozhong Zhang 7 years, 10 months ago
QEMU intercepts guest writes to vNVDIMM labels, and then stores them
to the backend. When the backend is a real NVDIMM device, QEMU needs
to ensure the write persistence before returning to guest, so that the
guest labels will not be lost if QEMU exits abnormally.

Haozhong Zhang (2):
  util/pmem: add function to make writes to pmem persistent
  mem/nvdimm: ensure persistence of QEMU writes to real NVDIMM device

 hw/mem/nvdimm.c     |   3 ++
 include/qemu/pmem.h |  25 ++++++++++
 util/Makefile.objs  |   1 +
 util/pmem.c         | 132 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 161 insertions(+)
 create mode 100644 include/qemu/pmem.h
 create mode 100644 util/pmem.c

-- 
2.14.1