History

KVM: nVMX: add KVM_CAP_HYPERV_ENLIGHTENED_VMCS capability

Enlightened VMCS is opt-in. The current version does not contain all fields supported by nested VMX so we must not advertise the corresponding VMX features if enlightened VMCS is enabled. Userspace is given the enlightened VMCS version supported by KVM as part of enabling KVM_CAP_HYPERV_ENLIGHTENED_VMCS. The version is to be advertised to the nested hypervisor, currently done via a cpuid leaf for Hyper-V.

Vitaly Kuznetsov committed 8 years ago

Commit 57b119d1 parent 5d7a6445 files · +65 −0Browse files

Showing the changes to include/uapi/linux (1 of 5 files). Show all

Unified · Split

include/uapi/linux/kvm.h+1−0
@@ -963,6 +963,7 @@ struct kvm_ppc_resize_hpt { · 962 unmodified lines
963#define KVM_CAP_PPC_NESTED_HV 160963#define KVM_CAP_PPC_NESTED_HV 160
964#define KVM_CAP_HYPERV_SEND_IPI 161964#define KVM_CAP_HYPERV_SEND_IPI 161
965#define KVM_CAP_COALESCED_PIO 162965#define KVM_CAP_COALESCED_PIO 162
966#define KVM_CAP_HYPERV_ENLIGHTENED_VMCS 163
966 967
967#ifdef KVM_CAP_IRQ_ROUTING968#ifdef KVM_CAP_IRQ_ROUTING
968 969