Skip to content

KVM: Skip mmu_notifier invalidations for gmem-only slots

Sean Christopherson kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest2 patches 6 repliesIn review

Changes in v4 from the cover letter

- Tack on a patch to disallow prefetching gmem-only memslots using a VMA. [Sashiko, Lorenzo]

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2KVM: Disallow prefetching PFNs (for SPTEs) via VMAs for gmem-only memslotsvirt/kvm/kvm_main.c+3 -03 replies
2/2KVM: Skip gfn-based MMU notifier invalidations for guest_memfd-only memslotsvirt/kvm/kvm_main.c+4 -03 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAckerley TngLorenzo Stoakes (ARM)Pankaj Gupta
1/2R-b R-b R-b
2/2R-b R-b R-b

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 v4 thread

Cover letter [PATCH v4 0/2] KVM: Skip mmu_notifier invalidations for gmem-only slots

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/[email protected]
- v1, but with a different changelog.

v2: https://lore.kernel.org/all/[email protected]

v1: https://lore.kernel.org/all/[email protected]

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

Signature · 1 line
2.56.1.703.gf848ed807c-goog