]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Allow NUMA nodes without vCPUs
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 27 May 2020 11:42:22 +0000 (13:42 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Jul 2020 10:05:24 +0000 (12:05 +0200)
commita26f61ee0cffa421b87ef568002b684dd8025432
tree5092c4dbe8f3978952c4e01ae95b389327feabaf
parent1050c6beb1f2238cd847d93eab17d658720b08e1
Allow NUMA nodes without vCPUs

QEMU allows creating NUMA nodes that have memory only.
These are somehow important for HMAT.

With check done in qemuValidateDomainDef() for QEMU 2.7 or newer
(checked via QEMU_CAPS_NUMA), we can be sure that the vCPUs are
fully assigned to NUMA nodes in domain XML.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
docs/formatdomain.html.in
docs/schemas/cputypes.rng
src/conf/numa_conf.c
src/libxl/xen_xl.c
src/qemu/qemu_command.c
src/qemu/qemu_validate.c
tests/qemuxml2argvdata/numatune-no-vcpu.args [new file with mode: 0644]
tests/qemuxml2argvdata/numatune-no-vcpu.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/numatune-no-vcpu.xml [new symlink]
tests/qemuxml2xmltest.c