projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf74a78
)
KVM: SVM: Allow read access to MSR_VM_VR
author
Joerg Roedel
<joerg.roedel@amd.com>
Tue, 25 Nov 2008 19:17:09 +0000
(20:17 +0100)
committer
Avi Kivity
<avi@redhat.com>
Tue, 24 Mar 2009 09:02:47 +0000
(11:02 +0200)
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
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/svm.c
b/arch/x86/kvm/svm.c
index 4cb2920b15278f70e96212c00ba7a08860cb85a6..df5b41192661a46b652a9bfcb65972bc5301ae0b 100644
(file)
--- 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);
}