diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2018-12-10 18:21:55 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-12-14 17:59:54 +0100 |
commit | e2e871ab2f02dc9ca5f06065234475393dcec38b (patch) | |
tree | 991cd58f1454c2200eb91eed84a4580c962db112 /arch/x86/kvm/vmx/evmcs.h | |
parent | x86/hyper-v: Drop HV_X64_CONFIGURE_PROFILER definition (diff) | |
download | linux-e2e871ab2f02dc9ca5f06065234475393dcec38b.tar.xz linux-e2e871ab2f02dc9ca5f06065234475393dcec38b.zip |
x86/kvm/hyper-v: Introduce nested_get_evmcs_version() helper
The upcoming KVM_GET_SUPPORTED_HV_CPUID ioctl will need to return
Enlightened VMCS version in HYPERV_CPUID_NESTED_FEATURES.EAX when
it was enabled.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx/evmcs.h')
-rw-r--r-- | arch/x86/kvm/vmx/evmcs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx/evmcs.h b/arch/x86/kvm/vmx/evmcs.h index 1572a3759d65..e0fcef85b332 100644 --- a/arch/x86/kvm/vmx/evmcs.h +++ b/arch/x86/kvm/vmx/evmcs.h @@ -195,6 +195,7 @@ static inline void evmcs_sanitize_exec_ctrls(struct vmcs_config *vmcs_conf) {} static inline void evmcs_touch_msr_bitmap(void) {} #endif /* IS_ENABLED(CONFIG_HYPERV) */ +uint16_t nested_get_evmcs_version(struct kvm_vcpu *vcpu); int nested_enable_evmcs(struct kvm_vcpu *vcpu, uint16_t *vmcs_version); |