KVM: make MMU_DEBUG compile again
authorMarcelo Tosatti <marcelo@kvack.org>
Thu, 14 Feb 2008 23:25:39 +0000 (21:25 -0200)
committerAvi Kivity <avi@qumranet.com>
Tue, 4 Mar 2008 13:19:47 +0000 (15:19 +0200)
the cr3 variable is now inside the vcpu->arch structure.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h

index 26037106ad190b05e4222bd797aeccf5fc7e3e66..194ece6974e6619953ef183a1dc207928dc6bca8 100644 (file)
@@ -1182,7 +1182,7 @@ void kvm_mmu_flush_tlb(struct kvm_vcpu *vcpu)
 
 static void paging_new_cr3(struct kvm_vcpu *vcpu)
 {
-       pgprintk("%s: cr3 %lx\n", __FUNCTION__, vcpu->cr3);
+       pgprintk("%s: cr3 %lx\n", __FUNCTION__, vcpu->arch.cr3);
        mmu_free_roots(vcpu);
 }
 
index 2009c6e9dc4d268919412b8845aedfce15ffdc4d..5588fa594b61616af2daaea2852c471f97526c90 100644 (file)
@@ -143,7 +143,7 @@ walk:
        }
 #endif
        ASSERT((!is_long_mode(vcpu) && is_pae(vcpu)) ||
-              (vcpu->cr3 & CR3_NONPAE_RESERVED_BITS) == 0);
+              (vcpu->arch.cr3 & CR3_NONPAE_RESERVED_BITS) == 0);
 
        pt_access = ACC_ALL;