]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/x86/kvm/svm.c
KVM: SVM: Ignore lower 12 bit of nested msrpm_pa
[net-next-2.6.git] / arch / x86 / kvm / svm.c
index ddea391e78cd7e271a07921ea87b48ac742981db..490bec199887964c9f8c9037d2d22a4b345cdfd8 100644 (file)
@@ -2070,7 +2070,7 @@ static bool nested_svm_vmrun(struct vcpu_svm *svm)
        svm->vmcb->save.dr6 = nested_vmcb->save.dr6;
        svm->vmcb->save.cpl = nested_vmcb->save.cpl;
 
-       svm->nested.vmcb_msrpm = nested_vmcb->control.msrpm_base_pa;
+       svm->nested.vmcb_msrpm = nested_vmcb->control.msrpm_base_pa & ~0x0fffULL;
        svm->nested.vmcb_iopm  = nested_vmcb->control.iopm_base_pa  & ~0x0fffULL;
 
        /* cache intercepts */