x86/cpuid: add TCG feature bit trimming
authorAndre Przywara <andre.przywara@amd.com>
Thu, 11 Mar 2010 13:39:03 +0000 (14:39 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 13 Mar 2010 15:50:54 +0000 (16:50 +0100)
commit2a8de2845009074a5ef139bc7f832da2208e7bbe
treed6d76dcff7e1343329fd8615a0f7a2510963eaad
parent0a13204b28d0864e4400406df1aa5bf6f75eec82
x86/cpuid: add TCG feature bit trimming

In KVM we trim the user provided CPUID bits to match the host CPU's
one. Introduce a similar feature to QEMU/TCG. Create a mask of TCG's
capabilities and apply it to the user bits.
This allows to let the CPU models reflect their native archetypes.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-i386/cpuid.c