Re: [PATCH 0/5] SEV fixes and performance enhancements

From: Paolo Bonzini
Date: Wed Oct 09 2019 - 06:08:07 EST


On 03/10/19 23:17, Lendacky, Thomas wrote:
> From: Tom Lendacky <thomas.lendacky@xxxxxxx>
>
> 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(-)
>

Queued, thanks. I squashed 4/5 and 5/5 since there's not much that
survives of patch 4 after the next one.

Paolo