]> www.infradead.org Git - linux.git/commit
KVM: nVMX: Remove outdated comments in nested_vmx_setup_ctls_msrs()
authorYu Zhang <yu.c.zhang@linux.intel.com>
Thu, 19 Jan 2023 14:19:45 +0000 (22:19 +0800)
committerSean Christopherson <seanjc@google.com>
Tue, 21 Mar 2023 17:11:57 +0000 (10:11 -0700)
commitad36aab37ae4f2ca898a809454020c5acc23b47c
treee8537362a0aa808112c846d0ae351444cec50a17
parentd8708b80fa0e6e21bc0c9e7276ad0bccef73b6e7
KVM: nVMX: Remove outdated comments in nested_vmx_setup_ctls_msrs()

nested_vmx_setup_ctls_msrs() initializes the vmcs_conf.nested,
which stores the global VMX MSR configurations when nested is
supported, regardless of any particular CPUID settings for one
VM.

Commit 6defc591846d ("KVM: nVMX: include conditional controls
in /dev/kvm KVM_GET_MSRS") added the some feature flags for
secondary proc-based controls, so that those features can be
available in KVM_GET_MSRS. Yet this commit did not remove the
obsolete comments in nested_vmx_setup_ctls_msrs().

Just fix the comments, and no functional change intended.

Fixes: 6defc591846d ("KVM: nVMX: include conditional controls in /dev/kvm KVM_GET_MSRS")
Signed-off-by: Yu Zhang <yu.c.zhang@linux.intel.com>
Link: https://lore.kernel.org/r/20230119141946.585610-1-yu.c.zhang@linux.intel.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/nested.c