lkml.org 
[lkml]   [2009]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 09/40] KVM: SVM: Allow read access to MSR_VM_VR
    Date
    From: Joerg Roedel <joerg.roedel@amd.com>

    KVM tries to read the VM_CR MSR to find out if SVM was disabled by
    the BIOS. So implement read support for this MSR to make nested
    SVM running.

    Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
    Signed-off-by: Alexander Graf <agraf@suse.de>
    Signed-off-by: Avi Kivity <avi@redhat.com>
    ---
    arch/x86/kvm/svm.c | 3 +++
    1 files changed, 3 insertions(+), 0 deletions(-)

    diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
    index 4cb2920..df5b411 100644
    --- a/arch/x86/kvm/svm.c
    +++ b/arch/x86/kvm/svm.c
    @@ -1869,6 +1869,9 @@ static int svm_get_msr(struct kvm_vcpu *vcpu, unsigned ecx, u64 *data)
    case MSR_VM_HSAVE_PA:
    *data = svm->hsave_msr;
    break;
    + case MSR_VM_CR:
    + *data = 0;
    + break;
    default:
    return kvm_get_msr_common(vcpu, ecx, data);
    }
    --
    1.6.0.6


    \
     
     \ /
      Last update: 2009-02-26 15:23    [W:0.037 / U:0.896 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site