pgtable.h (6617da8fb565445e0be4a4885443006374943d09) pgtable.h (4aaf269c768dbacd6268af73fda2ffccaa3f1d88)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_X86_PGTABLE_H
3#define _ASM_X86_PGTABLE_H
4
5#include <linux/mem_encrypt.h>
6#include <asm/page.h>
7#include <asm/pgtable_types.h>
8

--- 1425 unchanged lines hidden (view full) ---

1434}
1435
1436#define arch_has_hw_pte_young arch_has_hw_pte_young
1437static inline bool arch_has_hw_pte_young(void)
1438{
1439 return true;
1440}
1441
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef _ASM_X86_PGTABLE_H
3#define _ASM_X86_PGTABLE_H
4
5#include <linux/mem_encrypt.h>
6#include <asm/page.h>
7#include <asm/pgtable_types.h>
8

--- 1425 unchanged lines hidden (view full) ---

1434}
1435
1436#define arch_has_hw_pte_young arch_has_hw_pte_young
1437static inline bool arch_has_hw_pte_young(void)
1438{
1439 return true;
1440}
1441
1442#ifdef CONFIG_XEN_PV
1443#define arch_has_hw_nonleaf_pmd_young arch_has_hw_nonleaf_pmd_young
1444static inline bool arch_has_hw_nonleaf_pmd_young(void)
1445{
1446 return !cpu_feature_enabled(X86_FEATURE_XENPV);
1447}
1448#endif
1449
1442#ifdef CONFIG_PAGE_TABLE_CHECK
1443static inline bool pte_user_accessible_page(pte_t pte)
1444{
1445 return (pte_val(pte) & _PAGE_PRESENT) && (pte_val(pte) & _PAGE_USER);
1446}
1447
1448static inline bool pmd_user_accessible_page(pmd_t pmd)
1449{

--- 12 unchanged lines hidden ---
1450#ifdef CONFIG_PAGE_TABLE_CHECK
1451static inline bool pte_user_accessible_page(pte_t pte)
1452{
1453 return (pte_val(pte) & _PAGE_PRESENT) && (pte_val(pte) & _PAGE_USER);
1454}
1455
1456static inline bool pmd_user_accessible_page(pmd_t pmd)
1457{

--- 12 unchanged lines hidden ---