提交 cd62dbc0 编写于 作者: L Luyao Zhong 提交者: Michal Privoznik

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: NLuyao Zhong <luyao.zhong@intel.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 d660dd95
...@@ -8549,7 +8549,6 @@ qemu-kvm -net nic,model=? /dev/null ...@@ -8549,7 +8549,6 @@ qemu-kvm -net nic,model=? /dev/null
&lt;memory model='nvdimm'&gt; &lt;memory model='nvdimm'&gt;
&lt;source&gt; &lt;source&gt;
&lt;path&gt;/tmp/nvdimm&lt;/path&gt; &lt;path&gt;/tmp/nvdimm&lt;/path&gt;
&lt;alignsize unit='KiB'&gt;2048&lt;/alignsize&gt;
&lt;/source&gt; &lt;/source&gt;
&lt;target&gt; &lt;target&gt;
&lt;size unit='KiB'&gt;524288&lt;/size&gt; &lt;size unit='KiB'&gt;524288&lt;/size&gt;
...@@ -8560,9 +8559,10 @@ qemu-kvm -net nic,model=? /dev/null ...@@ -8560,9 +8559,10 @@ qemu-kvm -net nic,model=? /dev/null
&lt;readonly/&gt; &lt;readonly/&gt;
&lt;/target&gt; &lt;/target&gt;
&lt;/memory&gt; &lt;/memory&gt;
&lt;memory model='nvdimm'&gt; &lt;memory model='nvdimm' access='shared'&gt;
&lt;source&gt; &lt;source&gt;
&lt;path&gt;/dev/dax0.0&lt;/path&gt; &lt;path&gt;/dev/dax0.0&lt;/path&gt;
&lt;alignsize unit='KiB'&gt;2048&lt;/alignsize&gt;
&lt;pmem/&gt; &lt;pmem/&gt;
&lt;/source&gt; &lt;/source&gt;
&lt;target&gt; &lt;target&gt;
...@@ -8596,6 +8596,8 @@ qemu-kvm -net nic,model=? /dev/null ...@@ -8596,6 +8596,8 @@ qemu-kvm -net nic,model=? /dev/null
module basis. Values are the same as module basis. Values are the same as
<a href="#elementsMemoryBacking">Memory Backing</a>: <a href="#elementsMemoryBacking">Memory Backing</a>:
<code>shared</code> and <code>private</code>. <code>shared</code> and <code>private</code>.
For <code>nvdimm</code> model, if using real NVDIMM DAX device as
backend, <code>shared</code> is required.
</p> </p>
</dd> </dd>
...@@ -8659,7 +8661,8 @@ qemu-kvm -net nic,model=? /dev/null ...@@ -8659,7 +8661,8 @@ qemu-kvm -net nic,model=? /dev/null
alignment used to mmap the address range for the backend alignment used to mmap the address range for the backend
<code>path</code>. If not supplied the host page size is used. <code>path</code>. If not supplied the host page size is used.
For example, to mmap a real NVDIMM device a 2M-aligned page may 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.
<span class="since">Since 5.0.0</span> <span class="since">Since 5.0.0</span>
</p> </p>
</dd> </dd>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册