]> git.proxmox.com Git - qemu.git/commit - target-i386/cpu.c
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)
commit551a2dec8fa55006a68393b9d6fb63577d2b3f1c
treed6d76dcff7e1343329fd8615a0f7a2510963eaad
parent457dfed6146e19e4c7540456533be006076a2307
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