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.

x86: implement the new page table range API

Add PFN_PTE_SHIFT and a noop update_mmu_cache_range().

Link: https://lkml.kernel.org/r/20230802151406.3735276-29-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Matthew Wilcox (Oracle) and committed by
Andrew Morton
a3e1c937 fd8132e6

+7 -7
+7 -7
arch/x86/include/asm/pgtable.h
··· 185 185 186 186 static inline u64 protnone_mask(u64 val); 187 187 188 + #define PFN_PTE_SHIFT PAGE_SHIFT 189 + 188 190 static inline unsigned long pte_pfn(pte_t pte) 189 191 { 190 192 phys_addr_t pfn = pte_val(pte); ··· 1022 1020 return res; 1023 1021 } 1024 1022 1025 - static inline void set_pte_at(struct mm_struct *mm, unsigned long addr, 1026 - pte_t *ptep, pte_t pte) 1027 - { 1028 - page_table_check_ptes_set(mm, ptep, pte, 1); 1029 - set_pte(ptep, pte); 1030 - } 1031 - 1032 1023 static inline void set_pmd_at(struct mm_struct *mm, unsigned long addr, 1033 1024 pmd_t *pmdp, pmd_t pmd) 1034 1025 { ··· 1285 1290 */ 1286 1291 static inline void update_mmu_cache(struct vm_area_struct *vma, 1287 1292 unsigned long addr, pte_t *ptep) 1293 + { 1294 + } 1295 + static inline void update_mmu_cache_range(struct vm_fault *vmf, 1296 + struct vm_area_struct *vma, unsigned long addr, 1297 + pte_t *ptep, unsigned int nr) 1288 1298 { 1289 1299 } 1290 1300 static inline void update_mmu_cache_pmd(struct vm_area_struct *vma,