diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2008-11-25 14:17:09 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-03-24 05:02:47 -0400 |
commit | eb6f302edff9da963e687bf6c15dcf88843b1c3b (patch) | |
tree | 82cee93464f4b2afd960f1748e05be46356ea642 /arch/x86/kvm/svm.c | |
parent | cf74a78b229d07f77416d2fe1f029f183a8a31df (diff) |
KVM: SVM: Allow read access to MSR_VM_VR
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>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | 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 4cb2920b1527..df5b41192661 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) | |||
1869 | case MSR_VM_HSAVE_PA: | 1869 | case MSR_VM_HSAVE_PA: |
1870 | *data = svm->hsave_msr; | 1870 | *data = svm->hsave_msr; |
1871 | break; | 1871 | break; |
1872 | case MSR_VM_CR: | ||
1873 | *data = 0; | ||
1874 | break; | ||
1872 | default: | 1875 | default: |
1873 | return kvm_get_msr_common(vcpu, ecx, data); | 1876 | return kvm_get_msr_common(vcpu, ecx, data); |
1874 | } | 1877 | } |