]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Invalidate capabilities when host CPU changes
authorJiri Denemark <jdenemar@redhat.com>
Fri, 15 May 2020 20:00:29 +0000 (22:00 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 25 May 2020 14:10:04 +0000 (16:10 +0200)
commit004804a7d77d0b63ce2f5fcb8499c94b77a5ef5c
tree1a5bbdbd74dc3b91672fe8788cf356f52cab8dcf
parentd3d87e0cefd7144c559dd23fef789e7e37f74e76
qemu: Invalidate capabilities when host CPU changes

The host CPU related info stored in the capabilities cache is no longer
valid after the host CPU changes. This is not a frequent situation in
real world, but it can easily happen in nested scenarios when a disk
image is started with various CPUs.

https://bugzilla.redhat.com/show_bug.cgi?id=1778819

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