Commit 26304e0
committed
KVM: nVMX: Setup VMX MSRs on loading CPU during nested_vmx_hardware_setup()
Move the call to nested_vmx_setup_ctls_msrs() from vmx_hardware_setup() to
nested_vmx_hardware_setup() so that the nested code can deal with ordering
dependencies without having to straddle vmx_hardware_setup() and
nested_vmx_hardware_setup(). Specifically, an upcoming change will
sanitize the vmcs12 fields based on hardware support, and that code needs
to run _before_ the MSRs are configured, because the lovely vmcs_enum MSR
depends on the max support vmcs12 field.
No functional change intended.
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Link: https://patch.msgid.link/20260115173427.716021-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 6c8512a commit 26304e0
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7407 | 7407 | | |
7408 | 7408 | | |
7409 | 7409 | | |
| 7410 | + | |
| 7411 | + | |
7410 | 7412 | | |
7411 | 7413 | | |
7412 | 7414 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8700 | 8700 | | |
8701 | 8701 | | |
8702 | 8702 | | |
8703 | | - | |
8704 | | - | |
8705 | 8703 | | |
8706 | 8704 | | |
8707 | 8705 | | |
| |||
0 commit comments