From: Avi Kivity Date: Sat, 6 Jan 2007 00:36:58 +0000 (-0800) Subject: [PATCH] KVM: Don't set guest cr3 from vmx_vcpu_setup() X-Git-Tag: v2.6.20-rc4~19 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=4db9c47c052b89d89f43d12879690c1b3283b887;p=linux-2.6-omap-h63xx.git [PATCH] KVM: Don't set guest cr3 from vmx_vcpu_setup() It overwrites the right cr3 set from mmu setup. Happens only with the test harness. Signed-off-by: Avi Kivity Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index 779d8fc07d3..e6ea76cdfdb 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c @@ -1027,8 +1027,6 @@ static int vmx_vcpu_setup(struct kvm_vcpu *vcpu) vmcs_writel(GUEST_RIP, 0xfff0); vmcs_writel(GUEST_RSP, 0); - vmcs_writel(GUEST_CR3, 0); - //todo: dr0 = dr1 = dr2 = dr3 = 0; dr6 = 0xffff0ff0 vmcs_writel(GUEST_DR7, 0x400);