From: Luyao Zhong
Date: Thu, 20 Dec 2018 09:14:42 +0000 (+0800)
Subject: conf: Introduce 'readonly' element into xml for NVDIMM memory
X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=db521e7d03e5e97a743a1c35decb50dd50e3e8db;p=libvirt.git
conf: Introduce 'readonly' element into xml for NVDIMM memory
The 'readonly' option allows users to mark vNVDIMM read-only:
...
/dev/dax0.040940
...
Signed-off-by: Luyao Zhong
Reviewed-by: John Ferlan
---
diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in
index 0b1b478b2a..7f07bb7f55 100644
--- a/docs/formatdomain.html.in
+++ b/docs/formatdomain.html.in
@@ -8330,6 +8330,7 @@ qemu-kvm -net nic,model=? /dev/null
<label>
<size unit='KiB'>128</size>
</label>
+ <readonly/>
</target>
</memory>
<memory model='nvdimm'>
@@ -8465,19 +8466,39 @@ qemu-kvm -net nic,model=? /dev/null
NUMA nodes configured.
- For NVDIMM type devices one can optionally use
- label and its subelement size
- to configure the size of namespaces label storage
- within the NVDIMM module. The size element
- has usual meaning described
- here.
- For QEMU domains the following restrictions apply:
+ The following optional elements may be used:
-
-
the minimum label size is 128KiB,
-
the remaining size (total-size - label-size) has to be aligned to
- 4KiB
-
+
+
+
label
+
+
+ For NVDIMM type devices one can optionally use
+ label and its subelement size
+ to configure the size of namespaces label storage
+ within the NVDIMM module. The size element
+ has usual meaning described
+ here.
+ For QEMU domains the following restrictions apply:
+
+
+
the minimum label size is 128KiB,
+
the remaining size (total-size - label-size) will be aligned
+ to 4KiB as default.
+
+
+
+
readonly
+
+
+ The readonly element is used to mark the vNVDIMM
+ as read-only. Only the real NVDIMM device backend can guarantee
+ the guest write persistence, so other backend types should use
+ the readonly element.
+ Since 5.0.0
+