KVM: nVMX: Add helpers to setup VMX control msr configs
authorYu Zhang <yu.c.zhang@linux.intel.com>
Thu, 19 Jan 2023 14:19:46 +0000 (22:19 +0800)
committerSean Christopherson <seanjc@google.com>
Tue, 21 Mar 2023 17:20:28 +0000 (10:20 -0700)
commitf6cde92083dec5cf424504d7029acdffbe5beed8
treeb7278dfa481dcff65211f3863f6fab197a83c9aa
parentad36aab37ae4f2ca898a809454020c5acc23b47c
KVM: nVMX: Add helpers to setup VMX control msr configs

nested_vmx_setup_ctls_msrs() is used to set up the various VMX MSR
controls for nested VMX. But it is a bit lengthy, just add helpers
to setup the configuration of VMX MSRs.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Yu Zhang <yu.c.zhang@linux.intel.com>
Link: https://lore.kernel.org/r/20230119141946.585610-2-yu.c.zhang@linux.intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/nested.c