[libvirt] [PATCHv3 6/6] qemu: process: Validate specific CPUID flags of a guest

Jiri Denemark jdenemar at redhat.com
Thu Nov 7 22:22:34 UTC 2013


On Mon, Nov 04, 2013 at 14:55:07 +0100, Peter Krempa wrote:
> 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.
> ---
> 
> Notes:
>     Version 3:
>     - monitor code is now called only on the correct arch to avoid spurious errors in log
>     
>     Version 2:
>     - adapted to previous changes
> 
>  src/qemu/qemu_process.c | 46 ++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 46 insertions(+)

ACK

Jirka




More information about the libvir-list mailing list