Skip to content

SEV fixes and performance enhancements

Lendacky, Thomas kvm lkml 1 version Applied

Status from this message: Queued, thanks. I squashed 4/5 and 5/5 since there's not much that

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5KVM: SVM: Serialize access to the SEV ASID bitmaparch/x86/kvm/svm.c+17 -121 reply
2/5KVM: SVM: Guard against DEACTIVATE when performing WBINVD/DF_FLUSHarch/x86/kvm/svm.c+20 -00 replies
3/5KVM: SVM: Remove unneeded WBINVD and DF_FLUSH when starting SEV guestsarch/x86/kvm/svm.c drivers/crypto/ccp/psp-dev.c+9 -150 replies
4/5KVM: SVM: Convert DEACTIVATE mutex to read/write semaphorearch/x86/kvm/svm.c+4 -30 replies
5/5KVM: SVM: Reduce WBINVD/DF_FLUSH invocationsarch/x86/kvm/svm.c+64 -140 replies

Reviews trailers per patch

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

PatchDavid RientjesJim Mattson
1/5T-b R-b
2/5T-b
3/5T-b
4/5T-b
5/5T-b

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/5] SEV fixes and performance enhancements

From: Tom Lendacky <[email protected]>

This patch series provides fixes in the area of ASID assignment and VM deactivation.

Additionally, it provides some performance enhancements by reducing the number of WBINVD/DF_FLUSH invocations that are made.

Note: The third patch in the series modifies a file that is outside of
the arch/x86/kvm directory.

---

Patches based on https://git.kernel.org/pub/scm/virt/kvm/kvm.git next and commit:
fd3edd4a9066 ("KVM: nVMX: cleanup and fix host 64-bit mode checks")

Tom Lendacky (5):
KVM: SVM: Serialize access to the SEV ASID bitmap
KVM: SVM: Guard against DEACTIVATE when performing WBINVD/DF_FLUSH
KVM: SVM: Remove unneeded WBINVD and DF_FLUSH when starting SEV guests
KVM: SVM: Convert DEACTIVATE mutex to read/write semaphore
KVM: SVM: Reduce WBINVD/DF_FLUSH invocations

 arch/x86/kvm/svm.c           | 105 +++++++++++++++++++++++++++--------
 drivers/crypto/ccp/psp-dev.c |   9 +++
 2 files changed, 92 insertions(+), 22 deletions(-)
Signature · 1 line
2.17.1