Preserve the hypervisor bit while KVM trims the CPUID bits
commit9af4aed6c749786edb780e5de1795377f515e8f7
authorAndre Przywara <andre.przywara@amd.com>
Thu, 2 Jul 2009 14:45:43 +0000 (2 16:45 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 7 Jul 2009 11:36:20 +0000 (7 14:36 +0300)
tree17237c0a0ffd66751def73af9f2182a7d0713f44
parent0d598d50c0bcb915fdfa66c72a6df9055939d947
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.
This is similar to commit 6c0d7ee8, but since qemu-kvm uses another code
path it has to be inserted in qemu-kvm-x86.c, too.

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