mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-03-04 09:04:39 -07:00
pc: fixes
This includes nvdimm persistence fixes queued before the release. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> -----BEGIN PGP SIGNATURE----- iQEcBAABAgAGBQJbepoTAAoJECgfDbjSjVRpLioH/3BPps8FLh4x2gZSq3B+u72O RYUA3I3TilEGyc9yf8o7e1Hf+pQAJBEmulcnKxXFVWZIJ1GVLPt4NZCMQGiPDnJL +RCT/Q64PUy09hRjddAasikrvXa4YOsRgBgJJToO7v9PSQSaU3fC7O3hNea7KcF/ C4SSqkUgxyDhCCYHHblpKxFz/wtwy4ZaCGSdozIdmKNPJ6/ye8wOQ1Mq9e1Mwp18 S6ilJub5IwB6aM2KVMmX4AFomF4u2cn153ts8fI+Dyo4/NE6P4+viDlz3BOBKdzm kmd49h6/n4Lenoo4oI1yNHSuIJJTVfvnoLu6rG7mPbQKgxNd1uN4KuUIygU5PCY= =Xcaj -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/mst/tags/for_upstream' into staging pc: fixes This includes nvdimm persistence fixes queued before the release. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> # gpg: Signature made Mon 20 Aug 2018 11:38:11 BST # gpg: using RSA key 281F0DB8D28D5469 # gpg: Good signature from "Michael S. Tsirkin <mst@kernel.org>" # gpg: aka "Michael S. Tsirkin <mst@redhat.com>" # Primary key fingerprint: 0270 606B 6F3C DF3D 0B17 0970 C350 3912 AFBE 8E67 # Subkey fingerprint: 5D09 FD08 71C8 F85B 94CA 8A0D 281F 0DB8 D28D 5469 * remotes/mst/tags/for_upstream: migration/ram: ensure write persistence on loading all data to PMEM. migration/ram: Add check and info message to nvdimm post copy. mem/nvdimm: ensure write persistence to PMEM in label emulation hostmem-file: add the 'pmem' option configure: add libpmem support memory, exec: switch file ram allocation functions to 'flags' parameters memory, exec: Expose all memory block related flags. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
55f4e79d79
12 changed files with 235 additions and 36 deletions
|
|
@ -173,3 +173,25 @@ There are currently two valid values for this option:
|
|||
the NVDIMMs in the event of power loss. This implies that the
|
||||
platform also supports flushing dirty data through the memory
|
||||
controller on power loss.
|
||||
|
||||
If the vNVDIMM backend is in host persistent memory that can be accessed in
|
||||
SNIA NVM Programming Model [1] (e.g., Intel NVDIMM), it's suggested to set
|
||||
the 'pmem' option of memory-backend-file to 'on'. When 'pmem' is 'on' and QEMU
|
||||
is built with libpmem [2] support (configured with --enable-libpmem), QEMU
|
||||
will take necessary operations to guarantee the persistence of its own writes
|
||||
to the vNVDIMM backend(e.g., in vNVDIMM label emulation and live migration).
|
||||
If 'pmem' is 'on' while there is no libpmem support, qemu will exit and report
|
||||
a "lack of libpmem support" message to ensure the persistence is available.
|
||||
For example, if we want to ensure the persistence for some backend file,
|
||||
use the QEMU command line:
|
||||
|
||||
-object memory-backend-file,id=nv_mem,mem-path=/XXX/yyy,size=4G,pmem=on
|
||||
|
||||
References
|
||||
----------
|
||||
|
||||
[1] NVM Programming Model (NPM)
|
||||
Version 1.2
|
||||
https://www.snia.org/sites/default/files/technical_work/final/NVMProgrammingModel_v1.2.pdf
|
||||
[2] Persistent Memory Development Kit (PMDK), formerly known as NVML project, home page:
|
||||
http://pmem.io/pmdk/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue