arm64: mm: Add confidential computing hook to ioremap_prot()
authorWill Deacon <will@kernel.org>
Fri, 30 Aug 2024 13:01:48 +0000 (14:01 +0100)
committerWill Deacon <will@kernel.org>
Fri, 30 Aug 2024 15:30:41 +0000 (16:30 +0100)
commitc86fa3470c1026e9f63a93e8885ea51ef99fae35
treeb4d28576bda0f5f8630ebaa226ca9038d91bacfd
parentebc59b120c588156feb7ce194a9636584ced18ba
arm64: mm: Add confidential computing hook to ioremap_prot()

Confidential Computing environments such as pKVM and Arm's CCA
distinguish between shared (i.e. emulated) and private (i.e. assigned)
MMIO regions.

Introduce a hook into our implementation of ioremap_prot() so that MMIO
regions can be shared if necessary.

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-6-will@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/io.h
arch/arm64/mm/ioremap.c