Commit 51c821d
committed
KVM: nVMX: Switch to vmcs01 to update APIC page on-demand if L2 is active
If the KVM-owned APIC-access page is migrated while L2 is running,
temporarily load vmcs01 and immediately update APIC_ACCESS_ADDR instead
of deferring the update until the next nested VM-Exit. Once changing
the virtual APIC mode is converted to always do on-demand updates, all
of the "defer until vmcs01 is active" logic will be gone.
Reviewed-by: Chao Gao <chao.gao@intel.com>
Link: https://patch.msgid.link/20260109034532.1012993-7-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 2bf889a commit 51c821d
3 files changed
Lines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5129 | 5129 | | |
5130 | 5130 | | |
5131 | 5131 | | |
5132 | | - | |
5133 | | - | |
5134 | | - | |
5135 | | - | |
5136 | | - | |
5137 | 5132 | | |
5138 | 5133 | | |
5139 | 5134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6904 | 6904 | | |
6905 | 6905 | | |
6906 | 6906 | | |
6907 | | - | |
6908 | | - | |
6909 | | - | |
6910 | | - | |
6911 | | - | |
| 6907 | + | |
| 6908 | + | |
6912 | 6909 | | |
6913 | 6910 | | |
6914 | 6911 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
| |||
0 commit comments