]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Introduce NVDIMM memory model
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 28 Jul 2016 16:54:18 +0000 (18:54 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 15 Mar 2017 12:30:58 +0000 (13:30 +0100)
commitb4e8a49f8d0614f8c933f69a830fc470f871e21b
tree5c9a623b7b8cf6ecb4ac0935d305394b397f5fe5
parent8cbdd2ca4805d04bdd83c24c76b2e490474d75b5
Introduce NVDIMM memory model

NVDIMM is new type of memory introduced into QEMU 2.6. The idea
is that we have a Non-Volatile memory module that keeps the data
persistent across domain reboots.

At the domain XML level, we already have some representation of
'dimm' modules. Long story short, NVDIMM will utilize the
existing <memory/> element that lives under <devices/> by adding
a new attribute 'nvdimm' to the existing @model and introduce a
new <path/> element for <source/> while reusing other fields. The
resulting XML would appear as:

    <memory model='nvdimm'>
      <source>
        <path>/tmp/nvdimm</path>
      </source>
      <target>
        <size unit='KiB'>523264</size>
        <node>0</node>
      </target>
      <address type='dimm' slot='0'/>
    </memory>

So far, this is just a XML parser/formatter extension. QEMU
driver implementation is in the next commit.

For more info on NVDIMM visit the following web page:

    http://pmem.io/

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
tests/qemuxml2argvdata/qemuxml2argv-memory-hotplug-nvdimm.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/qemuxml2xmlout-memory-hotplug-nvdimm.xml [new symlink]
tests/qemuxml2xmltest.c