summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-01-06 17:10:22 (GMT)
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 15:35:51 (GMT)
commitf9a48e6a18c210c4bf34769fa05ede250575c6a1 (patch)
treed823a5cd545b5056f6ac6b563070da7d3f2a4b37 /arch
parentedcafe3c5a06f46407c3f60145a36f269e56ff7f (diff)
downloadlinux-fsl-qoriq-f9a48e6a18c210c4bf34769fa05ede250575c6a1.tar.xz
KVM: Set cr0.et when the guest writes cr0
Follow the hardware. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 1de2ad7..1ad34d1 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -428,6 +428,8 @@ out:
void kvm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0)
{
+ cr0 |= X86_CR0_ET;
+
if (cr0 & CR0_RESERVED_BITS) {
printk(KERN_DEBUG "set_cr0: 0x%lx #GP, reserved bits 0x%lx\n",
cr0, kvm_read_cr0(vcpu));