[PATCH 0/2] KVM: nVMX: expose VMX capabilities as MSR features

From: Paolo Bonzini
Date: Mon Feb 26 2018 - 07:40:53 EST


These patches add the VMX capability MSRs to the /dev/kvm ioctls
KVM_GET_MSR_FEATURE_INDEX_LIST and KVM_GET_MSRS, so that userspace
can easily probe which VMX features are actually supported by KVM.

This will help the implementation of nested hypervisor migration,
even for heterogeneous clusters.

Patch 1 is just refactoring, while patch 2 implements the feature.

Thanks,

Paolo

Paolo Bonzini (2):
KVM: nVMX: introduce struct nested_vmx_msrs
KVM: nVMX: expose VMX capabilities for nested hypervisors to userspace

arch/x86/kvm/vmx.c | 367 ++++++++++++++++++++++++++++-------------------------
arch/x86/kvm/x86.c | 19 +++
2 files changed, 210 insertions(+), 176 deletions(-)

--
1.8.3.1