]> xenbits.xensource.com Git - libvirt.git/commit
conf: Introduce 'readonly' element into xml for NVDIMM memory
authorLuyao Zhong <luyao.zhong@intel.com>
Thu, 20 Dec 2018 09:14:42 +0000 (17:14 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 2 Jan 2019 14:00:34 +0000 (09:00 -0500)
commitdb521e7d03e5e97a743a1c35decb50dd50e3e8db
tree30c5511bea24f353d3eee128b6066119fc121c40
parent73fc8c491eaf2c3559953a260ed21d955761ba56
conf: Introduce 'readonly' element into xml for NVDIMM memory

The 'readonly' option allows users to mark vNVDIMM read-only:

<devices>
  ...
  <memory model='nvdimm' access='shared'>
      <source>
          <path>/dev/dax0.0</path>
      </source>
      <target>
          <size unit='MiB'>4094</size>
          <node>0</node>
          <label>
              <size unit='MiB'>2</size>
          </label>
          <readonly/>
      </target>
  </memory>
  ...
</devices>

Signed-off-by: Luyao Zhong <luyao.zhong@intel.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
tests/qemuxml2argvdata/memory-hotplug-nvdimm-readonly.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/memory-hotplug-nvdimm-readonly.xml [new symlink]
tests/qemuxml2xmltest.c