arm64: rsi: Add automatic arm-cca-guest module loading
authorJeremy Linton <jeremy.linton@arm.com>
Fri, 20 Dec 2024 18:12:36 +0000 (12:12 -0600)
committerWill Deacon <will@kernel.org>
Wed, 8 Jan 2025 13:58:49 +0000 (13:58 +0000)
commita1edec22457e6fabc5450a6eea7fdc0e1b6dab31
tree282f2490664f0fe82bc9c8c88d5b181f6a80bcc5
parentfac04efc5c793dccbd07e2d59af9f90b7fc0dca4
arm64: rsi: Add automatic arm-cca-guest module loading

The TSM module provides guest identification and attestation when a
guest runs in CCA realm mode. By creating a dummy platform device,
let's ensure the module is automatically loaded. The udev daemon loads
the TSM module after it receives a device addition event. Once that
happens, it can be used earlier in the boot process to decrypt the
rootfs.

Signed-off-by: Jeremy Linton <jeremy.linton@arm.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20241220181236.172060-2-jeremy.linton@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/rsi.h
arch/arm64/kernel/rsi.c
drivers/virt/coco/arm-cca-guest/arm-cca-guest.c