]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: move NUMA validation to qemu_domain.c
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 9 Dec 2019 23:15:12 +0000 (20:15 -0300)
committerCole Robinson <crobinso@redhat.com>
Mon, 16 Dec 2019 22:50:33 +0000 (17:50 -0500)
commit62065a6cb54b2a3d4f4662aa8244a68b3a0fa8d5
tree15e9ae3ab6d6c0af1f8255de6a69084ed887ef97
parent990f4df34b97a3530c69c37a1ca3e04c9866f725
qemu: command: move NUMA validation to qemu_domain.c

A new qemuDomainDefValidateNuma() function was created to host
all the QEMU caps validation being done inside qemuBuildNumaArgStr().
This new function is called by qemuDomainValidateCpuCount()
to allow NUMA validation in domain define time.

Tests were changed to account for the QEMU capabilities
that need to be present at domain define time.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c