preserve the hypervisor bit while KVM trims the CPUID bits
authorAndre Przywara <andre.przywara@amd.com>
Wed, 24 Jun 2009 22:08:04 +0000 (00:08 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 29 Jun 2009 18:52:12 +0000 (13:52 -0500)
commite17a059033a98e8e9ae68d801f94abc723ad336a
tree6c63fa52bb7744be9555f68042ec244da27a6e65
parent39803f28ae73d21f774386abf8d5748ca4663260
preserve the hypervisor bit while KVM trims the CPUID bits

The KVM kernel will disable all bits in CPUID which are not present in
the host. As this is mostly true for the hypervisor bit (1.ecx),
preserve its value before the trim and restore it afterwards.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-i386/cpu.h
target-i386/kvm.c