diff options
author | Steven Price <[email protected]> | 2020-05-13 16:37:50 +0100 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2020-09-04 12:46:07 +0100 |
commit | 36943aba91860269abfba2e736e9534d48e90cae (patch) | |
tree | 4fb2f58ccd9e8811cad36b712738f2afc5e7ebb0 /scripts/gdb/linux/config.py | |
parent | 8a84802e2a2b1a682761a31c2685506b9f4e1840 (diff) |
arm64: mte: Enable swap of tagged pages
When swapping pages out to disk it is necessary to save any tags that
have been set, and restore when swapping back in. Make use of the new
page flag (PG_ARCH_2, locally named PG_mte_tagged) to identify pages
with tags. When swapping out these pages the tags are stored in memory
and later restored when the pages are brought back in. Because shmem can
swap pages back in without restoring the userspace PTE it is also
necessary to add a hook for shmem.
Signed-off-by: Steven Price <[email protected]>
[[email protected]: move function prototypes to mte.h]
[[email protected]: drop '_tags' from arch_swap_restore_tags()]
Signed-off-by: Catalin Marinas <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: Will Deacon <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions