From: Paolo Bonzini Subject: [PATCH 0/2] KVM: nVMX: expose VMX capabilities as MSR features Date: Mon, 26 Feb 2018 13:40:07 +0100 Message-ID: <1519648809-16694-1-git-send-email-pbonzini@redhat.com> Cc: dmatlack@google.com To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Return-path: Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org 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