]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: mm: Add top-level dispatcher for internal mem_encrypt API
authorWill Deacon <will@kernel.org>
Fri, 30 Aug 2024 13:01:46 +0000 (14:01 +0100)
committerWill Deacon <will@kernel.org>
Fri, 30 Aug 2024 15:30:41 +0000 (16:30 +0100)
commite7bafbf7177750e6643941473b343ed72fc5a100
tree2bc8382e382b9a538385346b9e80125d3aca8ec8
parenta06c3fad49a50d5d5eb078f93e70f4d3eca5d5a5
arm64: mm: Add top-level dispatcher for internal mem_encrypt API

Implementing the internal mem_encrypt API for arm64 depends entirely on
the Confidential Computing environment in which the kernel is running.

Introduce a simple dispatcher so that backend hooks can be registered
depending upon the environment in which the kernel finds itself.

Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240830130150.8568-4-will@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/Kconfig
arch/arm64/include/asm/mem_encrypt.h [new file with mode: 0644]
arch/arm64/include/asm/set_memory.h
arch/arm64/mm/Makefile
arch/arm64/mm/mem_encrypt.c [new file with mode: 0644]