]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: process: Validate specific CPUID flags of a guest
authorPeter Krempa <pkrempa@redhat.com>
Mon, 14 Oct 2013 09:35:00 +0000 (11:35 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 8 Nov 2013 08:44:42 +0000 (09:44 +0100)
commitd94b7817719b064849818b9ba6c37e403b7c003c
tree5c63eff9da935d950ef810adf5b8a7b9e91def2e
parente0dc851164d57f26ec10ceed022fe913f76ba24c
qemu: process: Validate specific CPUID flags of a guest

When starting a VM the qemu process may filter out some requested
features of a domain as it's not supported either by the host or by
qemu. Libvirt didn't check if this happened which might end up in
changing of the guest ABI when migrating.

The proof of concept implementation adds the check for the recently
introduced kvm_pv_unhalt cpuid feature bit. This feature depends on both
qemu and host kernel support and thus increase the possibility of guest
ABI breakage.
src/qemu/qemu_process.c