Skip to content

Enhance NMI support of KVM - v2

Jan Kiszka kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9VMX: include all IRQ window exits in statisticsarch/x86/kvm/vmx.c+1 -10 replies
2/9VMX: refactor/fix IRQ and NMI injectability determinationarch/x86/kvm/vmx.c include/asm-x86/kvm_host.h+22 -250 replies
3/9VMX: refactor IRQ and NMI window enablingarch/x86/kvm/vmx.c+32 -460 replies
4/9VMX: fix real-mode NMI supportarch/x86/kvm/vmx.c+13 -00 replies
5/9kvm-x86: Enable NMI Watchdog via in-kernel PIT sourcearch/x86/kvm/i8254.c arch/x86/kvm/irq.h arch/x86/kvm/lapic.c+44 -44 replies
6/9kvm-x86: Support for user space injected NMIsarch/x86/kvm/x86.c include/asm-x86/kvm_host.h include/linux/kvm.h+55 -40 replies
7/9VMX: Provide support for user space injected NMIsarch/x86/kvm/vmx.c+29 -00 replies
8/9VMX: work around lacking VNMI supportarch/x86/kvm/vmx.c+120 -537 replies
9/9kvm: Enable NMI support for userspace irqchiplibkvm/libkvm.c libkvm/libkvm.h qemu/monitor.c +3 more+100 -50 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/9] Enhance NMI support of KVM - v2

After going through the NMI patches again, implementing a workaround for older VMX CPUs without virtual NMIs, I came across several inconsistency and lacking/forgotten features around NMI (and also a bit IRQ) handling. So here is an enhanced patch series. Changes are:

- VMX: workaround for lacking VNMI support on older CPUs with VMX
- VMX: consolidate and fix NMI/IRQ window state determination
- VMX: consolidate enabling code for NMI/IRQ window notification
- VMX: fix NMI delivery in real-mode
- rebased patch for in-kernel NMI watchdog support

Looking forward to feedback.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux