Skip to content

KVM: SEV: Enable AMD SEV-ES DebugSwap

Alexey Kardashevskiy kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9KVM: SEV: move set_dr_intercepts/clr_dr_intercepts from the headerarch/x86/kvm/svm/svm.c arch/x86/kvm/svm/svm.h+42 -420 replies
2/9KVM: SEV: Move SEV's GP_VECTOR intercept setup to SEVarch/x86/kvm/svm/sev.c arch/x86/kvm/svm/svm.c+8 -60 replies
3/9KVM: SVM: Rewrite sev_es_prepare_switch_to_guest()'s comment about swap typesarch/x86/kvm/svm/sev.c+15 -100 replies
4/9KVM: SEV-ES: explicitly disable debugarch/x86/kvm/svm/sev.c arch/x86/kvm/svm/svm.c+13 -10 replies
5/9KVM: SVM/SEV/SEV-ES: Rework interceptsarch/x86/kvm/svm/sev.c arch/x86/kvm/svm/svm.c+25 -232 replies
6/9KVM: SEV: Enable data breakpoints in SEV-ESarch/x86/include/asm/cpufeatures.h arch/x86/include/asm/svm.h arch/x86/kvm/svm/sev.c +1 more+37 -30 replies
7/9KVM: SEV-ES: Eliminate #DB intercept when DebugSwap enabledarch/x86/kvm/svm/sev.c+2 -00 replies
8/9KVM: SVM: Don't defer NMI unblocking until next exit for SEV-ES guestsarch/x86/kvm/svm/sev.c arch/x86/kvm/svm/svm.c+9 -60 replies
9/9KVM: SVM: Don't try to pointlessly single-step SEV-ES guests for NMI windowarch/x86/kvm/svm/svm.c+13 -00 replies

Reviews trailers per patch

3 of 9 patches have a Reviewed-by or Acked-by.

PatchCarlos BilbaoTom LendackySantosh Shukla
1/9R-b R-b R-b
2/9R-b R-b R-b
3/9
4/9
5/9R-b R-b
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH kernel 0/9] KVM: SEV: Enable AMD SEV-ES DebugSwap

This is to use another AMD SEV-ES hardware assisted register swap, more detail in 6/9. In the process it's been suggested to fix other things, here is the attempt, with the great help of amders.

The previous conversation is here:
https://lore.kernel.org/r/[email protected]

This is based on sha1
6e2e1e779912 Ingo Molnar "Merge branch into tip/master: 'x86/sgx'".

The tree is here: https://github.com/aik/linux/tree/debugswap

Please comment. Thanks.

Alexey Kardashevskiy (6):
KVM: SEV: move set_dr_intercepts/clr_dr_intercepts from the header
KVM: SEV: Move SEV's GP_VECTOR intercept setup to SEV
KVM: SEV-ES: explicitly disable debug
KVM: SVM/SEV/SEV-ES: Rework intercepts
KVM: SEV: Enable data breakpoints in SEV-ES
KVM: SEV-ES: Eliminate #DB intercept when DebugSwap enabled

Sean Christopherson (3):
KVM: SVM: Rewrite sev_es_prepare_switch_to_guest()'s comment about
swap types
KVM: SVM: Don't defer NMI unblocking until next exit for SEV-ES guests
KVM: SVM: Don't try to pointlessly single-step SEV-ES guests for NMI
window

 arch/x86/include/asm/cpufeatures.h       |  1 +
 arch/x86/include/asm/svm.h               |  1 +
 arch/x86/kvm/svm/svm.h                   | 42 ----------
 tools/arch/x86/include/asm/cpufeatures.h |  1 +
 arch/x86/kvm/svm/sev.c                   | 86 +++++++++++++++++---
 arch/x86/kvm/svm/svm.c                   | 70 ++++++++++++++--
 6 files changed, 137 insertions(+), 64 deletions(-)
Signature · 1 line
2.40.1