From: Luyao Zhong
Date: Mon, 23 Sep 2019 10:06:22 +0000 (+0800)
Subject: clarify the xml example for NVDIMM more clealy
X-Git-Tag: v5.8.0-rc1~5
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd62dbc03bf3a5c7ee3d155ceafb39dc16ed1b7b;p=thirdparty%2Flibvirt.git
clarify the xml example for NVDIMM more clealy
The NVDIMM backend file can be a normal file or a real device file,
Current xml example and explainations may mislead users. So add more
info about the NVDIMM related elements and update the xml examples.
Signed-off-by: Luyao Zhong
Reviewed-by: Michal Privoznik
---
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 93991aa3d1..647f96f651 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -8549,7 +8549,6 @@ qemu-kvm -net nic,model=? /dev/null
<memory model='nvdimm'>
<source>
<path>/tmp/nvdimm</path>
- <alignsize unit='KiB'>2048</alignsize>
</source>
<target>
<size unit='KiB'>524288</size>
@@ -8560,9 +8559,10 @@ qemu-kvm -net nic,model=? /dev/null
<readonly/>
</target>
</memory>
- <memory model='nvdimm'>
+ <memory model='nvdimm' access='shared'>
<source>
<path>/dev/dax0.0</path>
+ <alignsize unit='KiB'>2048</alignsize>
<pmem/>
</source>
<target>
@@ -8596,6 +8596,8 @@ qemu-kvm -net nic,model=? /dev/null
module basis. Values are the same as
Memory Backing:
shared
and private
.
+ For nvdimm
model, if using real NVDIMM DAX device as
+ backend, shared
is required.
@@ -8659,7 +8661,8 @@ qemu-kvm -net nic,model=? /dev/null
alignment used to mmap the address range for the backend
path
. If not supplied the host page size is used.
For example, to mmap a real NVDIMM device a 2M-aligned page may
- be required.
+ be required, and host page size is 4KB, then we need to set this
+ element to 2MB.
Since 5.0.0