]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: pass VMA instead of MM to follow_pte()
authorDavid Hildenbrand <david@redhat.com>
Wed, 10 Apr 2024 15:55:26 +0000 (17:55 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 6 May 2024 00:53:27 +0000 (17:53 -0700)
commit29ae7d96d166fa08c7232daf8a314ef5ba1efd20
treece705a55e77e2e85442ff965a37e5a7c980ddf97
parent3d6586008f7b638f91f3332602592caa8b00b559
mm: pass VMA instead of MM to follow_pte()

... and centralize the VM_IO/VM_PFNMAP sanity check in there. We'll
now also perform these sanity checks for direct follow_pte()
invocations.

For generic_access_phys(), we might now check multiple times: nothing to
worry about, really.

Link: https://lkml.kernel.org/r/20240410155527.474777-3-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Acked-by: Sean Christopherson <seanjc@google.com> [KVM]
Cc: Alex Williamson <alex.williamson@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Fei Li <fei1.li@intel.com>
Cc: Gerald Schaefer <gerald.schaefer@linux.ibm.com>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Yonghua Huang <yonghua.huang@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/s390/pci/pci_mmio.c
arch/x86/mm/pat/memtype.c
drivers/vfio/vfio_iommu_type1.c
drivers/virt/acrn/mm.c
include/linux/mm.h
mm/memory.c
virt/kvm/kvm_main.c