[PATCH v4 0/2] KVM: Skip mmu_notifier invalidations for gmem-only slots
From: Sean Christopherson
Date: Mon Nov 16 2026 - 20:15:19 EST
Fix a lurking bug where KVM incorrectly prefetches SPTEs for gmem-only memslots
using fast GUP, i.e. VMAs, and then skip mmu_notifier invalidations for
gmem-only memslots (because as the name suggests, KVM MMUs are supposed to
only get PFNs for gmem-only memslots straight from guest_memfd).
v4:
- Tack on a patch to disallow prefetching gmem-only memslots using a VMA.
[Sashiko, Lorenzo]
v3:
- https://lore.kernel.org/all/20261113164000.467175-1-seanjc@xxxxxxxxxx
- v1, but with a different changelog.
v2: https://lore.kernel.org/all/20260714160411.302386-1-alexandru.elisei@xxxxxxx
v1: https://lore.kernel.org/all/20260615155244.183044-1-alexandru.elisei@xxxxxxx
Alexandru Elisei (1):
KVM: Skip gfn-based MMU notifier invalidations for guest_memfd-only
memslots
Sean Christopherson (1):
KVM: Disallow prefetching PFNs (for SPTEs) via VMAs for gmem-only
memslots
virt/kvm/kvm_main.c | 7 +++++++
1 file changed, 7 insertions(+)
base-commit: d21eef2084a9af87ac2a783bc7c2b175ba114e4e
--
2.56.1.703.gf848ed807c-goog