]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Separate partial CPU check into a function
authorJiri Denemark <jdenemar@redhat.com>
Thu, 10 Oct 2024 08:11:25 +0000 (10:11 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 23 Oct 2024 14:00:44 +0000 (16:00 +0200)
commit591b364f4985aa50010485cd12068becc9af0a9e
treebced45a970eea7e95ce8284817b68d591cbe9f7f
parent52d2a8eb6c279e397de8a8d522bee2b109b7380f
qemu: Separate partial CPU check into a function

The new qemuDomainCheckCPU function is used as a replacement for
virCPUCompare to make sure all callers use the same comparison
algorithm. As a side effect qemuConnectCompareHypervisorCPU now properly
reports CPU compatibility for CPU model that are considered runnable by
QEMU even if our definition of the model disagrees.

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