]> git.proxmox.com Git - qemu.git/commit - target-i386/cpu.c
target-i386: check/enforce: Check all feature words
authorEduardo Habkost <ehabkost@redhat.com>
Mon, 7 Jan 2013 18:20:48 +0000 (16:20 -0200)
committerAndreas Färber <afaerber@suse.de>
Tue, 15 Jan 2013 03:09:14 +0000 (04:09 +0100)
commit07ca59450c9a0c5df65665ce46aa8487af59a1dd
tree022696d88807932ed17cae5b87014055ad2b62bc
parent89e49c8bea9ec81d2cca25f81f5e15c3a1d8b69c
target-i386: check/enforce: Check all feature words

This adds the following feature words to the list of flags to be checked
by kvm_check_features_against_host():

 - cpuid_7_0_ebx_features
 - ext4_features
 - kvm_features
 - svm_features

This will ensure the "enforce" flag works as it should: it won't allow
QEMU to be started unless every flag that was requested by the user or
defined in the CPU model is supported by the host.

This patch may cause existing configurations where "enforce" wasn't
preventing QEMU from being started to abort QEMU. But that's exactly the
point of this patch: if a flag was not supported by the host and QEMU
wasn't aborting, it was a bug in the "enforce" code.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386/cpu.c