diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2015-11-03 17:18:50 -0200 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2015-11-05 16:27:59 -0200 |
commit | 3e68482224129c3ddc061af7c9d438b882ecfdd1 (patch) | |
tree | a8d469f2f547898f4fd52d54219ca1c1052ac9af /include | |
parent | 496c1b19facc7b850fa0c09899fcc07a0702fbfd (diff) | |
download | qemu-3e68482224129c3ddc061af7c9d438b882ecfdd1.zip qemu-3e68482224129c3ddc061af7c9d438b882ecfdd1.tar.gz qemu-3e68482224129c3ddc061af7c9d438b882ecfdd1.tar.bz2 |
target-i386: Set "check=off" by default on pc-*-2.4 and older
The default CPU model (qemu64) have some issues today: it enables some
features (ABM and SSE4a) that are not present in many host CPUs. That
means many hosts (but not all of them) had those features silently
disabled in the default configuration in QEMU 2.4 and older.
With the new "check=on" default, this causes warnings to be printed in
the default configuration, because of the lack of SSE4A on all Intel
hosts, and the lack of ABM on Sandy Bridge and older hosts:
$ qemu-system-x86_64 -machine pc,accel=kvm
warning: host doesn't support requested feature: CPUID.80000001H:ECX.abm [bit 5]
warning: host doesn't support requested feature: CPUID.80000001H:ECX.sse4a [bit 6]
Those issues will be fixed in pc-*-2.5 and newer. But as we can't change
the guest ABI in pc-*-2.4, disable "check" mode by default in pc-*-2.4
and older so we don't print spurious warnings.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/i386/pc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index 606dbc2..8be4520 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -322,6 +322,11 @@ bool e820_get_entry(int, uint32_t, uint64_t *, uint64_t *); .driver = "host" "-" TYPE_X86_CPU,\ .property = "host-cache-info",\ .value = "on",\ + },\ + {\ + .driver = TYPE_X86_CPU,\ + .property = "check",\ + .value = "off",\ }, #define PC_COMPAT_2_3 \ |