KVM: nVMX: Fix VMX controls MSRs setup when nested VMX enabled
authorChenyi Qiang <chenyi.qiang@intel.com>
Fri, 28 Aug 2020 08:56:18 +0000 (16:56 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Sep 2020 11:57:07 +0000 (07:57 -0400)
commitefc831338bfd66e40b6ab8b2b332ab48203be9ff
treeeecbf25003586c534ef0ecd7bb1e66c1ba2810a8
parentd5cd6f34014592a232ce79dc25e295778bd43c22
KVM: nVMX: Fix VMX controls MSRs setup when nested VMX enabled

KVM supports the nested VM_{EXIT, ENTRY}_LOAD_IA32_PERF_GLOBAL_CTRL and
VM_{ENTRY_LOAD, EXIT_CLEAR}_BNDCFGS, but they are not exposed by the
system ioctl KVM_GET_MSR.  Add them to the setup of nested VMX controls MSR.

Signed-off-by: Chenyi Qiang <chenyi.qiang@intel.com>
Message-Id: <20200828085622.8365-2-chenyi.qiang@intel.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/nested.c