]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuValidateDomainVCpuTopology: Always validate vcpu count against topology
authorPeter Krempa <pkrempa@redhat.com>
Tue, 15 Aug 2023 15:17:14 +0000 (17:17 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 22 Aug 2023 12:04:41 +0000 (14:04 +0200)
commit4bc796a82f3910b0b5d28bb6c334203da24b4b49
tree78046ed15310d6bb5c460b2a409631f2a081bfc8
parent67979c7a633efce4ee5bf074f16d271b92a473b5
qemuValidateDomainVCpuTopology: Always validate vcpu count against topology

Historically we've used QEMU_CAPS_QUERY_HOTPLUGGABLE_CPUS as witness
that the topology must cover the maximum number ov vcpus. qemu started
to enforce this in qemu-2.5, thus we can now always do the check.

This change also requires aligning the topology in certain test files.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_validate.c
tests/qemuxml2argvdata/fd-memory-numa-topology2.args
tests/qemuxml2argvdata/fd-memory-numa-topology2.xml
tests/qemuxml2argvdata/fd-memory-numa-topology3.args
tests/qemuxml2argvdata/fd-memory-numa-topology3.xml