Commit 4687a2c
committed
KVM: VMX: Setup canonical VMCS config prior to kvm_x86_vendor_init()
Setup the golden VMCS config during vmx_init(), before the call to
kvm_x86_vendor_init(), instead of waiting until the callback to do
hardware setup. setup_vmcs_config() only touches VMX state, i.e. doesn't
poke anything in kvm.ko, and has no runtime dependencies beyond
hv_init_evmcs().
Setting the VMCS config early on will allow referencing VMCS and VMX
capabilities at any point during setup, e.g. to check for PERF_GLOBAL_CTRL
save/load support during mediated PMU initialization.
Tested-by: Xudong Hao <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>1 parent 5b5133e commit 4687a2c
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8359 | 8359 | | |
8360 | 8360 | | |
8361 | 8361 | | |
8362 | | - | |
8363 | | - | |
8364 | 8362 | | |
8365 | 8363 | | |
8366 | 8364 | | |
| |||
8584 | 8582 | | |
8585 | 8583 | | |
8586 | 8584 | | |
8587 | | - | |
8588 | | - | |
| 8585 | + | |
| 8586 | + | |
8589 | 8587 | | |
8590 | 8588 | | |
8591 | 8589 | | |
| 8590 | + | |
| 8591 | + | |
| 8592 | + | |
| 8593 | + | |
| 8594 | + | |
| 8595 | + | |
| 8596 | + | |
8592 | 8597 | | |
8593 | 8598 | | |
8594 | 8599 | | |
| |||
0 commit comments