lkml.org 
[lkml]   [2010]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5/5] KVM: SVM: Ignore lower 12 bit of nested msrpm_pa
    Date
    These bits are ignored by the hardware. Implement this
    for nested svm too.

    Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
    ---
    arch/x86/kvm/svm.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
    index 3859e2c..cfc8a90 100644
    --- a/arch/x86/kvm/svm.c
    +++ b/arch/x86/kvm/svm.c
    @@ -2012,7 +2012,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 */
    --
    1.7.0



    \
     
     \ /
      Last update: 2010-02-25 18:19    [W:0.022 / U:31.916 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site