]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cpu_conf: Allow specification of 'units' for @memory on numa nodes.
authorPrerna Saxena <prerna@linux.vnet.ibm.com>
Mon, 10 Nov 2014 11:52:58 +0000 (17:22 +0530)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 10 Nov 2014 13:55:45 +0000 (14:55 +0100)
commite3c44f0d36ad8e2c1b14a2d57eaa19028a7c69af
tree145e4a416471a2b9f152eade511e5759c491bd58
parentae5ecd76f16388ef2c0c1dde557805faf62dcade
cpu_conf: Allow specification of 'units' for @memory on numa nodes.

CPU numa topology implicitly allows memory specification in 'KiB'.

Enabling this to accept the 'unit' in which memory needs to be specified.
This now allows users to specify memory in units of choice, and
lists the same in 'KiB' -- just like other 'memory' elements in XML.

    <numa>
      <cell cpus='0-3' memory='1024' unit='MiB' />
      <cell cpus='4-7' memory='1024' unit='MiB' />
    </numa>

Also augment test cases to correctly model NUMA memory specification.
This adds the tag 'unit="KiB"' for memory attribute in NUMA cells.

Signed-off-by: Prerna Saxena <prerna@linux.vnet.ibm.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
21 files changed:
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/cpu_conf.c
tests/qemuxml2argvdata/qemuxml2argv-cpu-numa-disjoint.xml
tests/qemuxml2argvdata/qemuxml2argv-cpu-numa-memshared.xml
tests/qemuxml2argvdata/qemuxml2argv-cpu-numa1.xml
tests/qemuxml2argvdata/qemuxml2argv-cpu-numa2.xml
tests/qemuxml2argvdata/qemuxml2argv-cpu-numa3.xml
tests/qemuxml2argvdata/qemuxml2argv-hugepages-pages.xml
tests/qemuxml2argvdata/qemuxml2argv-hugepages-pages2.xml
tests/qemuxml2argvdata/qemuxml2argv-hugepages-pages3.xml
tests/qemuxml2argvdata/qemuxml2argv-hugepages-pages4.xml
tests/qemuxml2argvdata/qemuxml2argv-hugepages-shared.xml
tests/qemuxml2argvdata/qemuxml2argv-numatune-auto-prefer.xml
tests/qemuxml2argvdata/qemuxml2argv-numatune-memnode-no-memory.xml
tests/qemuxml2argvdata/qemuxml2argv-numatune-memnode.xml
tests/qemuxml2argvdata/qemuxml2argv-numatune-memnodes-problematic.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-cpu-numa1.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-cpu-numa2.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-numatune-auto-prefer.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-numatune-memnode.xml