Skip to content

Commit a3e1c93

Browse files
Matthew Wilcox (Oracle)akpm00
authored andcommitted
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>
1 parent fd8132e commit a3e1c93

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

arch/x86/include/asm/pgtable.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ static inline int pte_special(pte_t pte)
185185

186186
static inline u64 protnone_mask(u64 val);
187187

188+
#define PFN_PTE_SHIFT PAGE_SHIFT
189+
188190
static inline unsigned long pte_pfn(pte_t pte)
189191
{
190192
phys_addr_t pfn = pte_val(pte);
@@ -1020,13 +1022,6 @@ static inline pud_t native_local_pudp_get_and_clear(pud_t *pudp)
10201022
return res;
10211023
}
10221024

1023-
static inline void set_pte_at(struct mm_struct *mm, unsigned long addr,
1024-
pte_t *ptep, pte_t pte)
1025-
{
1026-
page_table_check_ptes_set(mm, ptep, pte, 1);
1027-
set_pte(ptep, pte);
1028-
}
1029-
10301025
static inline void set_pmd_at(struct mm_struct *mm, unsigned long addr,
10311026
pmd_t *pmdp, pmd_t pmd)
10321027
{
@@ -1292,6 +1287,11 @@ static inline void update_mmu_cache(struct vm_area_struct *vma,
12921287
unsigned long addr, pte_t *ptep)
12931288
{
12941289
}
1290+
static inline void update_mmu_cache_range(struct vm_fault *vmf,
1291+
struct vm_area_struct *vma, unsigned long addr,
1292+
pte_t *ptep, unsigned int nr)
1293+
{
1294+
}
12951295
static inline void update_mmu_cache_pmd(struct vm_area_struct *vma,
12961296
unsigned long addr, pmd_t *pmd)
12971297
{

0 commit comments

Comments
 (0)