]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Add interface to parse and format memory device information
authorPeter Krempa <pkrempa@redhat.com>
Mon, 29 Sep 2014 17:02:04 +0000 (19:02 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 23 Mar 2015 13:25:15 +0000 (14:25 +0100)
commit3e4230d270f100646b7a557ea78efd649250428c
tree770e5330fc12e5ebf8e0a070b80f6e60ec2d5d7a
parent62b825a2d0467272b79d516a935685cf7e681b51
conf: Add interface to parse and format memory device information

This patch adds code that parses and formats configuration for memory
devices.

A simple configuration would be:
<memory model='dimm'>
  <target>
    <size unit='KiB'>524287</size>
    <node>0</node>
  </target>
</memory>

A complete configuration of a memory device:
<memory model='dimm'>
  <source>
    <pagesize unit='KiB'>4096</pagesize>
    <nodemask>1-3</nodemask>
  </source>
  <target>
    <size unit='KiB'>524287</size>
    <node>1</node>
  </target>
</memory>

This patch preemptively forbids use of the <memory> device in individual
drivers so the users are warned right away that the device is not
supported.
16 files changed:
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/bhyve/bhyve_domain.c
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
src/libxl/libxl_domain.c
src/lxc/lxc_domain.c
src/openvz/openvz_driver.c
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c
src/qemu/qemu_hotplug.c
src/uml/uml_driver.c
src/xen/xen_driver.c
src/xenapi/xenapi_driver.c
tests/qemuxml2argvdata/qemuxml2argv-memory-hotplug-dimm.xml [new file with mode: 0644]