Skip to content

mm: follow_pte() improvements and acrn follow_pte() fixes

David Hildenbrand kvm linux-mm linux-s390 lkml 1 version Applied

Status from this message: [merged mm-stable] mm-follow_pte-improvements.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3drivers/virt/acrn: fix PFNMAP PTE checks in acrn_vm_ram_map()drivers/virt/acrn/mm.c+47 -161 replyApplied
2/3mm: pass VMA instead of MM to follow_pte()arch/s390/pci/pci_mmio.c arch/x86/mm/pat/memtype.c drivers/vfio/vfio_iommu_type1.c +4 more+17 -201 replyApplied
3/3mm: follow_pte() improvementsmm/memory.c+15 -50 repliesApplied

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchSean ChristophersonDavid Hildenbrand
1/3R-b
2/3A-b
3/3

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 v1 0/3] mm: follow_pte() improvements and acrn follow_pte() fixes

Patch #1 fixes a bunch of issues I spotted in the acrn driver. It compiles, that's all I know. I'll appreciate some review and testing from acrn folks.

Patch #2+#3 improve follow_pte(), passing a VMA instead of the MM, adding more sanity checks, and improving the documentation. Gave it a quick test on x86-64 using VM_PAT that ends up using follow_pte().

Not CCing all s390x and x86 maintainers (but lists), to reduce noise.

As this depends on other stuff in mm-unstable, this should likely go via the MM tree.

Cc Andrew Morton <[email protected]>
Cc Yonghua Huang <[email protected]>
Cc Fei Li <[email protected]>
Cc Christoph Hellwig <[email protected]>
Cc Gerald Schaefer <[email protected]>
Cc Heiko Carstens <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Alex Williamson <[email protected]>
Cc Paolo Bonzini <[email protected]>

David Hildenbrand (3):
drivers/virt/acrn: fix PFNMAP PTE checks in acrn_vm_ram_map()
mm: pass VMA instead of MM to follow_pte()
mm: follow_pte() improvements

 arch/s390/pci/pci_mmio.c        |  4 +--
 arch/x86/mm/pat/memtype.c       |  5 +--
 drivers/vfio/vfio_iommu_type1.c |  4 +--
 drivers/virt/acrn/mm.c          | 62 ++++++++++++++++++++++++---------
 include/linux/mm.h              |  2 +-
 mm/memory.c                     | 35 ++++++++++++-------
 virt/kvm/kvm_main.c             |  4 +--
 7 files changed, 77 insertions(+), 39 deletions(-)
Signature · 1 line
2.44.0