]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: Remove unsupported bits from all CPU models
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 3 Oct 2014 19:39:49 +0000 (16:39 -0300)
committerAndreas Färber <afaerber@suse.de>
Tue, 4 Nov 2014 14:42:39 +0000 (15:42 +0100)
commitb9fc20bccfcbac082e82896c54862c939d9cb4d2
treea3cab1b791db9873f30b46a6478d1c92dc9ecab3
parent864867b91b48d38e2bfc7b225197901e6f7d8216
target-i386: Remove unsupported bits from all CPU models

The following CPU features were never supported by neither TCG or KVM,
so they are useless on the CPU model definitions, today:

 * CPUID_DTS (DS)
 * CPUID_HT
 * CPUID_TM
 * CPUID_PBE
 * CPUID_EXT_DTES64
 * CPUID_EXT_DSCPL
 * CPUID_EXT_EST
 * CPUID_EXT_TM2
 * CPUID_EXT_XTPR
 * CPUID_EXT_PDCM
 * CPUID_SVM_LBRV

As using "enforce" mode is the only way to ensure guest ABI doesn't
change when moving to a different host, we should make "enforce" mode
the default or at least encourage management software to always use it.

In turn, to make "enforce" usable, we need CPU models that work without
always requiring some features to be explicitly disabled. This patch
removes the above features from all CPU model definitions.

We won't need any machine-type compat code for those changes, because it
is impossible to have existing VMs with those features enabled.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386/cpu.c