mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 13:23:23 +01:00
TDX depends on a platform firmware module that runs on the CPU. Unlike other CoCo architectures, TDX has no hardware "device" running the show, just a blob on the CPU. Create a virtual device to anchor interactions with this platform firmware. This lets later code: - expose metadata: TDX module version, seamldr version, to userspace as device attributes - implement firmware uploader APIs (which are tied to a device) to support TDX module runtime updates Use a faux device because the TDX module is singular within the system and has no platform resources. Using a faux device eliminates the need to create a stub bus. The call to tdx_get_sysinfo() ensures that the TDX module is ready to provide services. Note that AMD has a PCI device for the PSP for SEV and ARM CCA will likely have a faux device [1]. Thanks to Dan and Yilun for all the help on this one. [ dhansen: trim changelog ] Signed-off-by: Chao Gao <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Reviewed-by: Tony Lindgren <[email protected]> Reviewed-by: Xu Yilun <[email protected]> Reviewed-by: Kai Huang <[email protected]> Reviewed-by: Kiryl Shutsemau (Meta) <[email protected]> Reviewed-by: Xiaoyao Li <[email protected]> Link: https://lore.kernel.org/all/2025073035-bulginess-rematch-b92e@gregkh/ # [1] Link: https://patch.msgid.link/[email protected]
13 lines
412 B
Makefile
13 lines
412 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Confidential computing related collateral
|
|
#
|
|
obj-$(CONFIG_EFI_SECRET) += efi_secret/
|
|
obj-$(CONFIG_ARM_PKVM_GUEST) += pkvm-guest/
|
|
obj-$(CONFIG_SEV_GUEST) += sev-guest/
|
|
obj-$(CONFIG_INTEL_TDX_GUEST) += tdx-guest/
|
|
obj-$(CONFIG_INTEL_TDX_HOST) += tdx-host/
|
|
obj-$(CONFIG_ARM_CCA_GUEST) += arm-cca-guest/
|
|
obj-$(CONFIG_TSM) += tsm-core.o
|
|
obj-$(CONFIG_TSM_GUEST) += guest/
|