Fix KVMs GET_SUPPORTED_CPUID feature usage
commitd448f409f1de409483d681fcd68d789402c3070b
authorAndre Przywara <andre.przywara@amd.com>
Thu, 25 Jun 2009 13:12:03 +0000 (25 15:12 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 1 Jul 2009 09:47:14 +0000 (1 12:47 +0300)
treec146032143fc86161a764ebfbf67290f81998966
parente347f89a3d4773dfc22d8874c9906453d54768c7
Fix KVMs GET_SUPPORTED_CPUID feature usage

If we want to trim the user provided CPUID bits for KVM to be not greater
than that of the host, we should

a) not remove the bits _after_ we sent them to the kernel  and
b) not do the bitmangling on the original values while sending a copy

This fixes the masking of features that are not present on the host and
helps to use -cpu host.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
qemu-kvm-x86.c