Skip to content

SVM NMI fixes

Avi Kivity kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: Fix race between nmi injection and enabling nmi windowarch/x86/kvm/x86.c include/linux/kvm_host.h+4 -12 replies
2/2KVM: SVM: check for progress after IRET interceptionarch/x86/kvm/svm.c+9 -110 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/2] SVM NMI fixes

There are a couple of fairly severe problems with NMI on AMD, both triggered with nmi_watchdog=1 in the guest and kvm ftrace in the host. One of the bug leads to guest userspace crashes via spurious setting of EFLAGS.TF, while the other leads to guest kernel hangs looping on the NMI handler's IRET instruction. I believe ftrace only affects timing here, and is not a real requirement to reproduce the bug.

See https://bugzilla.redhat.com/show_bug.cgi?id=612436 for the original report.

I will try to write unit tests for both issues.

Avi Kivity (2):
KVM: Fix race between nmi injection and enabling nmi window
KVM: SVM: check for progress after IRET interception

 arch/x86/kvm/svm.c       |   10 +++++++++-
 arch/x86/kvm/x86.c       |    4 +++-
 include/linux/kvm_host.h |    1 +
 3 files changed, 13 insertions(+), 2 deletions(-)