Re: [Qemu-devel] [PATCH v3 3/3] nvdimm: add 'unarmed' option

2017-12-03 Thread Haozhong Zhang
On 12/01/17 10:44 +, Stefan Hajnoczi wrote: > On Mon, Nov 27, 2017 at 12:35:17PM +0800, Haozhong Zhang wrote: > > @@ -312,6 +315,10 @@ nvdimm_build_structure_memdev(GArray *structures, > > DeviceState *dev) > > > > /* Only one interleave for PMEM. */ > > nfit_memdev->interleave_way

Re: [Qemu-devel] [PATCH v3 3/3] nvdimm: add 'unarmed' option

2017-12-01 Thread Stefan Hajnoczi
On Mon, Nov 27, 2017 at 12:35:17PM +0800, Haozhong Zhang wrote: > @@ -312,6 +315,10 @@ nvdimm_build_structure_memdev(GArray *structures, > DeviceState *dev) > > /* Only one interleave for PMEM. */ > nfit_memdev->interleave_ways = cpu_to_le16(1); > + > +if (nvdimm->unarmed) { > +

[Qemu-devel] [PATCH v3 3/3] nvdimm: add 'unarmed' option

2017-11-26 Thread Haozhong Zhang
Currently the only vNVDIMM backend can guarantee the guest write persistence is device DAX on Linux, because no host-side kernel cache is involved in the guest access to it. The approach to detect whether the backend is device DAX needs to access sysfs, which may not work with SELinux. Instead, we