Skip to content

KVM: nVMX: Honor event priority for PI ack at VM-Enter

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Applied to kvm-x86 vmx, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5KVM: nVMX: Explicitly update vPPR on successful nested VM-Enterarch/x86/kvm/vmx/nested.c+2 -10 replies
2/5KVM: nVMX: Check for pending INIT/SIPI after entering non-root modearch/x86/kvm/vmx/nested.c+1 -20 replies
3/5KVM: nVMX: Drop manual vmcs01.GUEST_INTERRUPT_STATUS.RVI check at VM-Enterarch/x86/kvm/vmx/nested.c+0 -100 replies
4/5KVM: nVMX: Use vmcs01's controls shadow to check for IRQ/NMI windows at VM-Enterarch/x86/kvm/vmx/nested.c+4 -60 replies
5/5KVM: nVMX: Honor event priority when emulating PI delivery during VM-Enterarch/x86/kvm/vmx/nested.c+38 -152 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] KVM: nVMX: Honor event priority for PI ack at VM-Enter

Rework and cleanup KVM's event handling during nested VM-Enter emulation, and ultimately fix a bug where KVM doesn't honor event priority when delivering a nested posted interrupt. Specifically, if there is a posted interrupt *notification* IRQ in L1's vIRR, the IRQ should not be acked by the CPU if a higher priority event is recognized after VM-Enter (which unblocks L1 IRQs).

FWIW, I don't exactly love the resulting code in vmx_check_nested_events(), so if someone has a better idea...

Sean Christopherson (5):
KVM: nVMX: Explicitly update vPPR on successful nested VM-Enter
KVM: nVMX: Check for pending INIT/SIPI after entering non-root mode
KVM: nVMX: Drop manual vmcs01.GUEST_INTERRUPT_STATUS.RVI check at
VM-Enter
KVM: nVMX: Use vmcs01's controls shadow to check for IRQ/NMI windows
at VM-Enter
KVM: nVMX: Honor event priority when emulating PI delivery during
VM-Enter

 arch/x86/kvm/vmx/nested.c | 77 ++++++++++++++++++++++-----------------
 1 file changed, 44 insertions(+), 33 deletions(-)

base-commit: e466901b947d529f7b091a3b00b19d2bdee206ee

Signature · 1 line
2.47.0.163.g1226f6d8fa-goog