]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add KVM CPUs into cache only if KVM is present
authorRoman Bolshakov <r.bolshakov@yadro.com>
Wed, 21 Nov 2018 18:45:02 +0000 (21:45 +0300)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 25 Jan 2022 15:53:39 +0000 (16:53 +0100)
commit4794458c8dcd82ab7ca4b2f5c8b374e3b0b45d76
tree458a9d7d7fc255048f511c1f6990e6745750d12e
parent8885cd9a76ec3f67433cc7f0eedec07de4737fad
qemu: Add KVM CPUs into cache only if KVM is present

virQEMUCapsFormatCache/virQEMUCapsLoadCache adds/reads KVM CPUs to/from
capabilities cache regardless of QEMU_CAPS_KVM. That can cause undesired
side-effects when KVM CPUs are present in the cache on a platform that
doesn't support it, e.g. macOS or Linux without KVM support.

Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Tested-by: Brad Laue <brad@brad-x.com>
Tested-by: Christophe Fergeau <cfergeau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_capabilities.c