Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

um: implement the new page table range API

Add PFN_PTE_SHIFT and update_mmu_cache_range().

Link: https://lkml.kernel.org/r/20230802151406.3735276-28-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Richard Weinberger <richard@nod.at>
Cc: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Matthew Wilcox (Oracle) and committed by
Andrew Morton
fd8132e6 1a10a44d

+2 -5
+2 -5
arch/um/include/asm/pgtable.h
··· 242 242 if(pte_present(*pteptr)) *pteptr = pte_mknewprot(*pteptr); 243 243 } 244 244 245 - static inline void set_pte_at(struct mm_struct *mm, unsigned long addr, 246 - pte_t *pteptr, pte_t pteval) 247 - { 248 - set_pte(pteptr, pteval); 249 - } 245 + #define PFN_PTE_SHIFT PAGE_SHIFT 250 246 251 247 #define __HAVE_ARCH_PTE_SAME 252 248 static inline int pte_same(pte_t pte_a, pte_t pte_b) ··· 286 290 extern pte_t *virt_to_pte(struct mm_struct *mm, unsigned long addr); 287 291 288 292 #define update_mmu_cache(vma,address,ptep) do {} while (0) 293 + #define update_mmu_cache_range(vmf, vma, address, ptep, nr) do {} while (0) 289 294 290 295 /* 291 296 * Encode/decode swap entries and swap PTEs. Swap PTEs are all PTEs that