Files
linux/arch/x86/include/asm
Alistair Popple 1af5a81099 mmu_notifiers: rename invalidate_range notifier
There are two main use cases for mmu notifiers.  One is by KVM which uses
mmu_notifier_invalidate_range_start()/end() to manage a software TLB.

The other is to manage hardware TLBs which need to use the
invalidate_range() callback because HW can establish new TLB entries at
any time.  Hence using start/end() can lead to memory corruption as these
callbacks happen too soon/late during page unmap.

mmu notifier users should therefore either use the start()/end() callbacks
or the invalidate_range() callbacks.  To make this usage clearer rename
the invalidate_range() callback to arch_invalidate_secondary_tlbs() and
update documention.

Link: https://lkml.kernel.org/r/6f77248cd25545c8020a54b4e567e8b72be4dca1.1690292440.git-series.apopple@nvidia.com
Signed-off-by: Alistair Popple <apopple@nvidia.com>
Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Cc: Andrew Donnellan <ajd@linux.ibm.com>
Cc: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Cc: Frederic Barrat <fbarrat@linux.ibm.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Kevin Tian <kevin.tian@intel.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Nicolin Chen <nicolinc@nvidia.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Sean Christopherson <seanjc@google.com>
Cc: SeongJae Park <sj@kernel.org>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Will Deacon <will@kernel.org>
Cc: Zhi Wang <zhi.wang.linux@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2023-08-18 10:12:41 -07:00
..
2021-10-20 22:35:04 +02:00
2023-01-19 13:52:05 -08:00
2022-08-04 11:11:59 +02:00
2022-09-26 10:13:16 -07:00
2023-06-05 09:36:39 +02:00
2023-06-05 09:36:39 +02:00
2023-05-09 12:53:16 +02:00
2023-05-15 20:03:08 +02:00
2022-10-17 16:41:15 +02:00
2020-05-07 16:06:20 +02:00
2021-12-11 09:09:47 +01:00
2021-10-28 23:25:26 +02:00
2020-10-28 20:26:25 +01:00
2021-10-05 21:48:30 +02:00
2020-11-26 12:58:56 +01:00
2020-11-06 23:14:58 +01:00
2022-10-03 14:03:26 -07:00
2022-04-07 08:27:52 -07:00
2022-11-10 13:12:45 +01:00
2023-07-17 15:48:10 +02:00
2020-09-16 16:52:28 +02:00
2023-07-17 15:48:10 +02:00
2023-06-01 15:04:33 +02:00
2023-06-05 09:36:39 +02:00
2021-07-01 11:06:03 -07:00
2022-08-21 10:06:28 -07:00
2021-12-11 09:09:45 +01:00
2023-07-10 09:52:25 +02:00
2019-04-10 09:53:31 +02:00
2020-03-21 16:03:25 +01:00
2023-06-06 18:25:57 +02:00
2020-11-17 14:36:13 +01:00
2022-01-30 21:17:00 -05:00
2022-01-30 21:17:00 -05:00
2020-03-23 18:45:14 +01:00
2022-06-08 05:56:24 -04:00
2020-01-14 12:20:58 +01:00