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.
Showing the changes to include/uapi/linux (1 of 5 files). Show all
Unified · Split
| @@ -963,6 +963,7 @@ struct kvm_ppc_resize_hpt { · 962 unmodified lines | ||
| 963 | 963 | #define KVM_CAP_PPC_NESTED_HV 160 |
| 964 | 964 | #define KVM_CAP_HYPERV_SEND_IPI 161 |
| 965 | 965 | #define KVM_CAP_COALESCED_PIO 162 |
| 966 | +#define KVM_CAP_HYPERV_ENLIGHTENED_VMCS 163 | |
| 966 | 967 | |
| 967 | 968 | #ifdef KVM_CAP_IRQ_ROUTING |
| 968 | 969 | |