]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
coco/guest: Move shared guest CC infrastructure to drivers/virt/coco/guest/
authorDan Williams <dan.j.williams@intel.com>
Tue, 4 Mar 2025 07:14:26 +0000 (23:14 -0800)
committerDan Williams <dan.j.williams@intel.com>
Fri, 2 May 2025 19:52:16 +0000 (12:52 -0700)
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: Alexey Kardashevskiy <aik@amd.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Link: https://patch.msgid.link/174107246641.1288555.208426916259466774.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
MAINTAINERS
drivers/virt/coco/Kconfig
drivers/virt/coco/Makefile
drivers/virt/coco/guest/Kconfig [new file with mode: 0644]
drivers/virt/coco/guest/Makefile [new file with mode: 0644]
drivers/virt/coco/guest/report.c [moved from drivers/virt/coco/tsm.c with 100% similarity]

index debcd79a264d13d06955a56e0c290af1f38c999d..0a1ca9233ccf86be212af062a6d6e7ea90978559 100644 (file)
@@ -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
index ff869d883d954b809939e1b2aaf412d80d2263a9..819a97e8ba994ecd941be764a683405e7a51688f 100644 (file)
@@ -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"
index c3d07cfc087ecf004d0ed4e50755c8557e8c01b2..885c9ef4e9fc97b15b336426db447d812e96dc7e 100644 (file)
@@ -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/
diff --git a/drivers/virt/coco/guest/Kconfig b/drivers/virt/coco/guest/Kconfig
new file mode 100644 (file)
index 0000000..ed9bafb
--- /dev/null
@@ -0,0 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Confidential computing shared guest collateral
+#
+config TSM_REPORTS
+       select CONFIGFS_FS
+       tristate
diff --git a/drivers/virt/coco/guest/Makefile b/drivers/virt/coco/guest/Makefile
new file mode 100644 (file)
index 0000000..b3b217a
--- /dev/null
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0
+obj-$(CONFIG_TSM_REPORTS)      += tsm_report.o
+tsm_report-y := report.o