hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/x86/include/asm/pgtable_types.h
....@@ -125,11 +125,12 @@
125125 * instance, and is *not* included in this mask since
126126 * pte_modify() does modify it.
127127 */
128
-#define _PAGE_CHG_MASK (PTE_PFN_MASK | _PAGE_PCD | _PAGE_PWT | \
129
- _PAGE_SPECIAL | _PAGE_ACCESSED | _PAGE_DIRTY | \
130
- _PAGE_SOFT_DIRTY | _PAGE_DEVMAP | _PAGE_ENC | \
131
- _PAGE_UFFD_WP)
132
-#define _HPAGE_CHG_MASK (_PAGE_CHG_MASK | _PAGE_PSE)
128
+#define _COMMON_PAGE_CHG_MASK (PTE_PFN_MASK | _PAGE_PCD | _PAGE_PWT | \
129
+ _PAGE_SPECIAL | _PAGE_ACCESSED | _PAGE_DIRTY |\
130
+ _PAGE_SOFT_DIRTY | _PAGE_DEVMAP | _PAGE_ENC | \
131
+ _PAGE_UFFD_WP)
132
+#define _PAGE_CHG_MASK (_COMMON_PAGE_CHG_MASK | _PAGE_PAT)
133
+#define _HPAGE_CHG_MASK (_COMMON_PAGE_CHG_MASK | _PAGE_PSE | _PAGE_PAT_LARGE)
133134
134135 /*
135136 * The cache modes defined here are used to translate between pure SW usage