Commit 7515f45c authored by Dan Williams's avatar Dan Williams
Browse files

coco/guest: Move shared guest CC infrastructure to drivers/virt/coco/guest/



In preparation for creating a new drivers/virt/coco/host/ directory to
house shared host driver infrastructure for confidential computing, move
configfs-tsm to a guest/ sub-directory. The tsm.ko module is renamed to
tsm_reports.ko. The old tsm.ko module was only ever demand loaded by
kernel internal dependencies, so it should not affect existing userspace
module install scripts.

The new drivers/virt/coco/guest/ is also a preparatory landing spot for
new / optional TSM Report mechanics like a TCB stability enumeration /
watchdog mechanism. To be added later.

Cc: Wu Hao <hao.wu@intel.com>
Cc: Yilun Xu <yilun.xu@intel.com>
Cc: Samuel Ortiz <sameo@rivosinc.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: default avatarAlexey Kardashevskiy <aik@amd.com>
Reviewed-by: default avatarKuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://patch.msgid.link/174107246641.1288555.208426916259466774.stgit@dwillia2-xfh.jf.intel.com


Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 71ded61b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24560,7 +24560,7 @@ M: Dan Williams <dan.j.williams@intel.com>
L:	linux-coco@lists.linux.dev
S:	Maintained
F:	Documentation/ABI/testing/configfs-tsm-report
F:	drivers/virt/coco/tsm.c
F:	drivers/virt/coco/guest/
F:	include/linux/tsm.h
TRUSTED SERVICES TEE DRIVER
+2 −4
Original line number Diff line number Diff line
@@ -3,10 +3,6 @@
# Confidential computing related collateral
#

config TSM_REPORTS
	select CONFIGFS_FS
	tristate

source "drivers/virt/coco/efi_secret/Kconfig"

source "drivers/virt/coco/pkvm-guest/Kconfig"
@@ -16,3 +12,5 @@ source "drivers/virt/coco/sev-guest/Kconfig"
source "drivers/virt/coco/tdx-guest/Kconfig"

source "drivers/virt/coco/arm-cca-guest/Kconfig"

source "drivers/virt/coco/guest/Kconfig"
+1 −1
Original line number Diff line number Diff line
@@ -2,9 +2,9 @@
#
# Confidential computing related collateral
#
obj-$(CONFIG_TSM_REPORTS)	+= tsm.o
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_ARM_CCA_GUEST)	+= arm-cca-guest/
obj-$(CONFIG_TSM_REPORTS)	+= guest/
+7 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
#
# Confidential computing shared guest collateral
#
config TSM_REPORTS
	select CONFIGFS_FS
	tristate
+3 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
obj-$(CONFIG_TSM_REPORTS)	+= tsm_report.o
tsm_report-y := report.o
Loading