diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2019-07-02 14:45:24 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-07-02 17:36:18 +0200 |
commit | 95c5c7c77c06c7037385b3d8d4d7592ab032c3cb (patch) | |
tree | c0a27ebf5a3881d64a3dc8a5a6dcf3ac4bfe495f /arch/x86/kvm/svm.c | |
parent | e8a70bd4e92525de459acfa5668c8e1f24664331 (diff) | |
download | linux-95c5c7c77c06c7037385b3d8d4d7592ab032c3cb.tar.bz2 |
KVM: nVMX: list VMX MSRs in KVM_GET_MSR_INDEX_LIST
This allows userspace to know which MSRs are supported by the hypervisor.
Unfortunately userspace must resort to tricks for everything except
MSR_IA32_VMX_VMFUNC (which was just added in the previous patch).
One possibility is to use the feature control MSR, which is tied to nested
VMX as well and is present on all KVM versions that support feature MSRs.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index bbc31f7213ed..5db50c19d1c7 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -5885,6 +5885,7 @@ static bool svm_has_emulated_msr(int index) { switch (index) { case MSR_IA32_MCG_EXT_CTL: + case MSR_IA32_VMX_BASIC ... MSR_IA32_VMX_VMFUNC: return false; default: break; |