diff options
author | Junyan He | 2018-07-18 09:47:59 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2018-08-10 12:29:39 +0200 |
commit | 17824406fa55b303379f2e4af715c1e876c3535f (patch) | |
tree | c04e87fa0374ce5fd3bb5d4717ef040593f34cee /include/exec | |
parent | memory, exec: switch file ram allocation functions to 'flags' parameters (diff) | |
download | qemu-17824406fa55b303379f2e4af715c1e876c3535f.tar.gz qemu-17824406fa55b303379f2e4af715c1e876c3535f.tar.xz qemu-17824406fa55b303379f2e4af715c1e876c3535f.zip |
configure: add libpmem support
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.
Libpem is a part of PMDK project(formerly known as NMVL).
The project's home page is: http://pmem.io/pmdk/
And the project's repository is: https://github.com/pmem/pmdk/
For more information about libpmem APIs, you can refer to the comments
in source code of: pmdk/src/libpmem/pmem.c, begin at line 33.
Signed-off-by: Junyan He <junyan.he@intel.com>
Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions