Skip to content

SVM: virtual NMI

Santosh Shukla kvm lkml 2 versions Applied

Status from this message: Applied to kvm-x86 svm. As mentioned in a previous reply, this is somewhat

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest11 patches 10 repliesApplied
  2. v310 patches 1 replySuperseded

Changes in v4 from the cover letter

- Missed sending 01/11 patch in v3.

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/11KVM: nSVM: Don't sync vmcb02 V_IRQ back to vmcb12 if KVM (L0) is intercepting VINTRarch/x86/kvm/svm/nested.c+10 -110 replies
2/11KVM: nSVM: Disable intercept of VINTR if saved RFLAG.IF is 0arch/x86/kvm/svm/nested.c arch/x86/kvm/svm/svm.c+20 -50 replies
3/11KVM: nSVM: Raise event on nested VM exit if L1 doesn't intercept IRQsarch/x86/kvm/svm/nested.c+25 -00 replies
4/11KVM: SVM: add wrappers to enable/disable IRET interceptionarch/x86/kvm/svm/svm.c+19 -90 replies
5/11KVM: x86: Raise an event request when processing NMIs if an NMI is pendingarch/x86/kvm/x86.c+3 -10 replies
6/11KVM: x86: Tweak the code and comment related to handling concurrent NMIsarch/x86/kvm/x86.c+11 -40 replies
7/11KVM: x86: Save/restore all NMIs when multiple NMIs are pendingarch/x86/kvm/x86.c+5 -20 replies
8/11x86/cpu: Add CPUID feature bit for VNMIarch/x86/include/asm/cpufeatures.h+1 -01 reply
9/11KVM: SVM: Add VNMI bit definitionarch/x86/include/asm/svm.h+9 -01 reply
10/11KVM: x86: add support for delayed virtual NMI injection interfacearch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +2 more+147 -271 reply
11/11KVM: nSVM: implement support for nested VNMIarch/x86/kvm/svm/nested.c arch/x86/kvm/svm/svm.c arch/x86/kvm/svm/svm.h+44 -01 reply

Reviews trailers per patch

2 of 11 patches have a Reviewed-by or Acked-by.

PatchMaxim Levitsky
1/11
2/11
3/11
4/11
5/11
6/11
7/11
8/11R-b
9/11R-b
10/11
11/11

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

Read the v4 thread

Cover letter [PATCHv4 00/11] SVM: virtual NMI

v2:
https://lore.kernel.org/all/[email protected]/

v3:
https://lore.kernel.org/all/[email protected]/
- 09/11: Clubbed x86_ops delayed NMI with vNMI changes into one, for better readability purpose (Sean Suggestion)
- Series includes suggestion and fixes proposed in v2 series. Refer each patch for change history(v2-->v3).

v4:
- Missed sending 01/11 patch in v3.

Series based on [1] and tested on AMD EPYC-Genoa.

APM: ((Ch-15.21.10 - NMI Virtualization)
https://www.amd.com/en/support/tech-docs/amd64-architecture-programmers-manual-volumes-1-5

Past history and work refer v5-
https://lkml.org/lkml/2022/10/27/261

Thanks,
Santosh
[1] https://github.com/kvm-x86/linux branch kvm-x86/next(62ef199250cd46f)

Maxim Levitsky (2):
KVM: nSVM: Raise event on nested VM exit if L1 doesn't intercept IRQs
KVM: SVM: add wrappers to enable/disable IRET interception

Santosh Shukla (6):
KVM: nSVM: Don't sync vmcb02 V_IRQ back to vmcb12 if KVM (L0) is
intercepting VINTR
KVM: nSVM: Disable intercept of VINTR if saved RFLAG.IF is 0 x86/cpu: Add CPUID feature bit for VNMI
KVM: SVM: Add VNMI bit definition
KVM: x86: add support for delayed virtual NMI injection interface
KVM: nSVM: implement support for nested VNMI

Sean Christopherson (3):
KVM: x86: Raise an event request when processing NMIs if an NMI is
pending
KVM: x86: Tweak the code and comment related to handling concurrent
NMIs
KVM: x86: Save/restore all NMIs when multiple NMIs are pending

 arch/x86/include/asm/cpufeatures.h |   1 +
 arch/x86/include/asm/kvm-x86-ops.h |   2 +
 arch/x86/include/asm/kvm_host.h    |  11 ++-
 arch/x86/include/asm/svm.h         |   9 ++
 arch/x86/kvm/svm/nested.c          |  94 +++++++++++++++---
 arch/x86/kvm/svm/svm.c             | 152 +++++++++++++++++++++++------
 arch/x86/kvm/svm/svm.h             |  28 ++++++
 arch/x86/kvm/x86.c                 |  46 +++++++--
 8 files changed, 289 insertions(+), 54 deletions(-)
Signature · 1 line
2.25.1