Skip to content

KVM: nSVM: first step towards fixing event injection

Paolo Bonzini kvm lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4KVM: nSVM: do not change host intercepts while nested VM is runningarch/x86/kvm/svm.c+18 -131 reply
2/4KVM: nSVM: ignore L1 interrupt window while running L2 with V_INTR_MASKING=1arch/x86/kvm/svm.c+37 -180 replies
3/4KVM: nSVM: implement check_nested_events for interruptsarch/x86/kvm/svm.c+30 -380 replies
4/4KVM: nSVM: avoid loss of pending IRQ/NMI before entering L2arch/x86/kvm/svm.c+18 -01 reply

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchVitaly Kuznetsov
1/4R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] KVM: nSVM: first step towards fixing event injection

Event injection in nSVM does not use check_nested_events, which means it is basically broken. As a first step, this fixes interrupt injection which is probably the most complicated case due to the interactions with V_INTR_MASKING and the host EFLAGS.IF.

This series fixes Cathy's test case that I have sent earlier.

Paolo

Paolo Bonzini (4):
KVM: nSVM: do not change host intercepts while nested VM is running
KVM: nSVM: ignore L1 interrupt window while running L2 with
V_INTR_MASKING=1
KVM: nSVM: implement check_nested_events for interrupts
KVM: nSVM: avoid loss of pending IRQ/NMI before entering L2

 arch/x86/kvm/svm.c | 172 ++++++++++++++++++++++++++++++++---------------------
 1 file changed, 103 insertions(+), 69 deletions(-)
Signature · 1 line
1.8.3.1