From: Joerg Roedel Date: Mon, 1 Mar 2010 14:34:40 +0000 (+0100) Subject: KVM: SVM: Ignore lower 12 bit of nested msrpm_pa X-Git-Tag: v2.6.35-rc1~436^2~196 X-Git-Url: http://ftp.safe.ca/?a=commitdiff_plain;h=f71385383fb86246ab3c69cc17a09ef9883590d8;p=safe%2Fjmp%2Flinux-2.6 KVM: SVM: Ignore lower 12 bit of nested msrpm_pa These bits are ignored by the hardware too. Implement this for nested svm too. Signed-off-by: Joerg Roedel Signed-off-by: Marcelo Tosatti --- diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index ddea391..490bec1 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -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 */