KVM: make MMU_DEBUG compile again
PATCH 1/1 KVM: make MMU_DEBUG compile again
the cr3 variable is now inside the vcpu->arch structure.
Signed-off-by Marcelo Tosatti <[email protected]>
arch/x86/kvm/mmu.c +1 -1
@@ -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
@@ -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/
Avi Kivity
AppliedQuoted 3 lines · Marcelo Tosatti
the cr3 variable is now inside the
vcpu->archstructure.
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/