]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_process: Always fix CPUs on reconnect
authorJiri Denemark <jdenemar@redhat.com>
Fri, 24 Oct 2025 13:36:18 +0000 (15:36 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 3 Nov 2025 11:33:26 +0000 (12:33 +0100)
commitc15ae99dab903004b82f8447f44df09973696f72
treea4734e60629a65ed0432b02737047f3a551ce887
parent2ab6925218df7298c17f0186425624aa792a5e84
qemu_process: Always fix CPUs on reconnect

We fix CPUs (i.e., remove ignored CPU features) only when libvirt/QEMU
combo used to start the domain is very old and doesn't support
query-cpu-model-expansion, in which case the CPU definition may contain
features that are unknown to QEMU. But even if both libvirt and QEMU are
new enough, we still want to remove features that do nothing to minimize
confusion or to avoid false migration issues.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_process.c