--- /dev/null
-.. kernel-doc:: drivers/virt/coco/tsm-mr.c
+ .. SPDX-License-Identifier: GPL-2.0
+ .. include:: <isonum.txt>
+
+ =====================
+ Measurement Registers
+ =====================
+
+ .. kernel-doc:: include/linux/tsm-mr.h
+ :internal:
+
++.. kernel-doc:: drivers/virt/coco/guest/tsm-mr.c
+ :export:
S: Maintained
F: Documentation/devicetree/bindings/trigger-source/pwm-trigger.yaml
--TRUSTED SECURITY MODULE (TSM) ATTESTATION REPORTS
++TRUSTED SECURITY MODULE (TSM) INFRASTRUCTURE
M: Dan Williams <dan.j.williams@intel.com>
L: linux-coco@lists.linux.dev
S: Maintained
-F: Documentation/ABI/testing/configfs-tsm
+F: Documentation/ABI/testing/configfs-tsm-report
+ F: Documentation/driver-api/coco/
+F: drivers/virt/coco/guest/
- F: include/linux/tsm.h
+ F: drivers/virt/coco/tsm*.c
+ F: include/linux/tsm*.h
+ F: samples/tsm/
TRUSTED SERVICES TEE DRIVER
M: Balint Dobszay <balint.dobszay@arm.com>
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/
++obj-$(CONFIG_TSM_GUEST) += guest/
--- /dev/null
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# Confidential computing shared guest collateral
+#
++config TSM_GUEST
++ bool
++
+config TSM_REPORTS
++ select TSM_GUEST
+ select CONFIGFS_FS
+ tristate
++
++config TSM_MEASUREMENTS
++ select TSM_GUEST
++ select CRYPTO_HASH_INFO
++ select CRYPTO
++ bool
--- /dev/null
+# SPDX-License-Identifier: GPL-2.0
+obj-$(CONFIG_TSM_REPORTS) += tsm_report.o
+tsm_report-y := report.o
++obj-$(CONFIG_TSM_MEASUREMENTS) += tsm-mr.o
return (i == timeout) ? -ETIMEDOUT : 0;
}
- static int tdx_report_new(struct tsm_report *report, void *data)
+ static int tdx_report_new_locked(struct tsm_report *report, void *data)
{
- u8 *buf, *reportdata = NULL, *tdreport = NULL;
+ u8 *buf;
struct tdx_quote_buf *quote_buf = quote_data;
- struct tsm_desc *desc = &report->desc;
+ struct tsm_report_desc *desc = &report->desc;
int ret;
u64 err;
static void __exit tdx_guest_exit(void)
{
- tsm_unregister(&tdx_tsm_ops);
+ tsm_report_unregister(&tdx_tsm_ops);
free_quote_buf(quote_data);
misc_deregister(&tdx_misc_dev);
+ tdx_mr_deinit(tdx_attr_groups[0]);
}
module_exit(tdx_guest_exit);