]> git.ipfire.org Git - thirdparty/linux.git/commit
hugetlb: arm64: add mte support
authorYang Shi <yang@os.amperecomputing.com>
Tue, 1 Oct 2024 22:52:19 +0000 (15:52 -0700)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 16 Oct 2024 13:50:47 +0000 (14:50 +0100)
commit25c17c4b55def92a01e3eecc9c775a6ee25ca20f
tree2ce5cdf56b30e77683c9ffe80402930e14e1e413
parent9852d85ec9d492ebef56dc5f229416c925758edc
hugetlb: arm64: add mte support

Enable MTE support for hugetlb.

The MTE page flags will be set on the folio only.  When copying
hugetlb folio (for example, CoW), the tags for all subpages will be copied
when copying the first subpage.

When freeing hugetlb folio, the MTE flags will be cleared.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Yang Shi <yang@os.amperecomputing.com>
Link: https://lore.kernel.org/r/20241001225220.271178-1-yang@os.amperecomputing.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/hugetlb.h
arch/arm64/include/asm/mman.h
arch/arm64/include/asm/mte.h
arch/arm64/kernel/hibernate.c
arch/arm64/kernel/mte.c
arch/arm64/kvm/guest.c
arch/arm64/kvm/mmu.c
arch/arm64/mm/copypage.c
fs/hugetlbfs/inode.c