]> git.proxmox.com Git - mirror_qemu.git/commit
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)
commit6c0d7ee8951a330c0885b0ebcd4c9596661900a9
tree6c63fa52bb7744be9555f68042ec244da27a6e65
parent671e4676076fb62860986decd44440d97bcc872d
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