Re: [PATCH 3/8] x86/mm: Always tell core mm to sync kernel mappings
From: Dave Hansen
Date: Tue Apr 15 2025 - 10:12:29 EST
On 4/15/25 01:28, Kirill A. Shutemov wrote:
>> #define SHARED_KERNEL_PMD (!static_cpu_has(X86_FEATURE_PTI))
>>
>> -#define ARCH_PAGE_TABLE_SYNC_MASK (SHARED_KERNEL_PMD ? 0 : PGTBL_PMD_MODIFIED)
>> +#define ARCH_PAGE_TABLE_SYNC_MASK PGTBL_PMD_MODIFIED
> The new definition is the same between pgtable-2level_types.h and
> pgtable-3level_types.h.
>
> Move it to the common pgtable_32_types.h.
Good catch, thanks. I'll add another patch to clean this up.