On Fri, Jun 01, 2018 at 04:10:26PM +0800, junyan...@gmx.com wrote: > From: Junyan He <junyan...@intel.com> > > Add a pair of configure options --{enable,disable}-libpmem to control > whether QEMU is compiled with PMDK libpmem [1]. > > QEMU may write to the host persistent memory (e.g. in vNVDIMM label > emulation and live migration), so it must take the proper operations > to ensure the persistence of its own writes. Depending on the CPU > models and available instructions, the optimal operation can vary [2]. > PMDK libpmem have already implemented those operations on multiple CPU > models (x86 and ARM) and the logic to select the optimal ones, so QEMU > can just use libpmem rather than re-implement them. > > [1] PMDK (formerly known as NMVL), https://github.com/pmem/pmdk/ > [2] > https://github.com/pmem/pmdk/blob/38bfa652721a37fd94c0130ce0e3f5d8baa3ed40/src/libpmem/pmem.c#L33 > > Signed-off-by: Junyan He <junyan...@intel.com> > Signed-off-by: Haozhong Zhang <haozhong.zh...@intel.com> > --- > configure | 29 +++++++++++++++++++++++++++++ > 1 file changed, 29 insertions(+)
Reviewed-by: Stefan Hajnoczi <stefa...@redhat.com>
signature.asc
Description: PGP signature