]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Merge tag 'kvm-x86-sev-6.17' of https://github.com/kvm-x86/linux into HEAD
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Jul 2025 15:41:06 +0000 (11:41 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 29 Jul 2025 12:36:46 +0000 (08:36 -0400)
commitbeafd7ecf2255e8b62a42dc04f54843033db3d24
tree89f6235968ea1413f96be213442c57f4c238ad33
parenta10accaef40f1947cf8ad5ec01d306c37aa85897
parent6f38f8c574642a822f2e85f079fa29a49176c49c
Merge tag 'kvm-x86-sev-6.17' of https://github.com/kvm-x86/linux into HEAD

KVM SEV cache maintenance changes for 6.17

 - Drop a superfluous WBINVD (on all CPUs!) when destroying a VM.

 - Use WBNOINVD instead of WBINVD when possible, for SEV cache maintenance,
   e.g. to minimize collateral damage when reclaiming memory from an SEV guest.

 - When reclaiming memory from an SEV guest, only do cache flushes on CPUs that
   have ever run a vCPU for the guest, i.e. don't flush the caches for CPUs
   that can't possibly have cache lines with dirty, encrypted data.
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.h
arch/x86/kvm/x86.c