]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Drop vmx-* from migratable CPU model only when origCPU is set
authorJiri Denemark <jdenemar@redhat.com>
Tue, 8 Oct 2024 10:26:40 +0000 (12:26 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 9 Oct 2024 12:46:50 +0000 (14:46 +0200)
commitaae8a5774ba7891401408c1169b5ed70037372bb
tree085b76a4414d1bf74548c76957f7863b920e2348
parentcd630c1b16701afd3fca11a418dc0f26cd079951
qemu: Drop vmx-* from migratable CPU model only when origCPU is set

When qemuDomainMakeCPUMigratable is called with origCPU == NULL the code
just removed all vmx-* features marked as added in the specified CPU
model just like when origCPU is not NULL, but does not list any of the
vmx-* features. But this is wrong, we should not touch these features at
all when no origCPU is supplied, which happens when parsing XML passed
by a user (e.g., migration XML). Such XML is supposed to be generated by
libvirt as migration XML and contains only vmx-* features explicitly
requested by a user.

https://issues.redhat.com/browse/RHEL-52314

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