Commit c829d2c
committed
KVM: nVMX: Use vmcs01's controls shadow to check for IRQ/NMI windows at VM-Enter
Use vmcs01's execution controls shadow to check for IRQ/NMI windows after
a successful nested VM-Enter, instead of snapshotting the information prior
to emulating VM-Enter. It's quite difficult to see that the entire reason
controls are snapshot prior nested VM-Enter is to read them from vmcs01
(vmcs02 is loaded if nested VM-Enter is successful).
That could be solved with a comment, but explicitly using vmcs01's shadow
makes the code self-documenting to a certain extent.
No functional change intended (vmcs01's execution controls must not be
modified during emulation of nested VM-Enter).
Link: https://lore.kernel.org/r/20241101191447.1807602-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent b2868b5 commit c829d2c
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3500 | 3500 | | |
3501 | 3501 | | |
3502 | 3502 | | |
3503 | | - | |
3504 | 3503 | | |
3505 | 3504 | | |
3506 | 3505 | | |
| |||
3519 | 3518 | | |
3520 | 3519 | | |
3521 | 3520 | | |
3522 | | - | |
3523 | | - | |
3524 | | - | |
3525 | 3521 | | |
3526 | 3522 | | |
3527 | 3523 | | |
| |||
3604 | 3600 | | |
3605 | 3601 | | |
3606 | 3602 | | |
3607 | | - | |
| 3603 | + | |
| 3604 | + | |
3608 | 3605 | | |
3609 | | - | |
| 3606 | + | |
| 3607 | + | |
3610 | 3608 | | |
3611 | 3609 | | |
3612 | 3610 | | |
| |||
0 commit comments