Skip to contentSkip to conversation

KVM: make MMU_DEBUG compile again

PATCH Applied Marcelo Tosatti 2 participants 2 messages Feb 14, 2008 – Feb 17, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KVM: make MMU_DEBUG compile again

the cr3 variable is now inside the vcpu->arch structure.

arch/x86/kvm/mmu.c +1 -1
Index: kvm.largepages/arch/x86/kvm/mmu.c
===================================================================
@@ -1219,7 +1219,7 @@ void kvm_mmu_flush_tlb(struct kvm_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);
 }
 
arch/x86/kvm/paging_tmpl.h +1 -1
Index: kvm.largepages/arch/x86/kvm/paging_tmpl.h
===================================================================
@@ -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;
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Applied
#1 lore raw
Quoted 3 lines · Marcelo Tosatti

the cr3 variable is now inside the vcpu->arch structure.

Applied, thanks.

Signature · 7 lines
Any sufficiently difficult bug is indistinguishable from a feature.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/