drivers/virt: pkvm: Hook up mem_encrypt API using pKVM hypercalls
authorWill Deacon <will@kernel.org>
Fri, 30 Aug 2024 13:01:47 +0000 (14:01 +0100)
committerWill Deacon <will@kernel.org>
Fri, 30 Aug 2024 15:30:41 +0000 (16:30 +0100)
commitebc59b120c588156feb7ce194a9636584ced18ba
tree920ef10082f63326dfbe0d19c81286930773f5ad
parente7bafbf7177750e6643941473b343ed72fc5a100
drivers/virt: pkvm: Hook up mem_encrypt API using pKVM hypercalls

If we detect the presence of pKVM's SHARE and UNSHARE hypercalls, then
register a backend implementation of the mem_encrypt API so that things
like DMA buffers can be shared appropriately with the host.

Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240830130150.8568-5-will@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Documentation/virt/kvm/arm/hypercalls.rst
drivers/virt/coco/pkvm-guest/arm-pkvm-guest.c
include/linux/arm-smccc.h