Skip to content

Commit

Permalink
KVM: SVM: Allow read access to MSR_VM_VR
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joerg Roedel authored and Avi Kivity committed Mar 24, 2009
1 parent cf74a78 commit eb6f302
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/x86/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit eb6f302

Please sign in to comment.