mirror-linux/drivers/virt/coco
Sami Mujawar 7999edc484 virt: arm-cca-guest: TSM_REPORT support for realms
Introduce an arm-cca-guest driver that registers with
the configfs-tsm module to provide user interfaces for
retrieving an attestation token.

When a new report is requested the arm-cca-guest driver
invokes the appropriate RSI interfaces to query an
attestation token.

The steps to retrieve an attestation token are as follows:
  1. Mount the configfs filesystem if not already mounted
     mount -t configfs none /sys/kernel/config
  2. Generate an attestation token
     report=/sys/kernel/config/tsm/report/report0
     mkdir $report
     dd if=/dev/urandom bs=64 count=1 > $report/inblob
     hexdump -C $report/outblob
     rmdir $report

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Link: https://lore.kernel.org/r/20241017131434.40935-11-steven.price@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
2024-10-23 10:19:33 +01:00
..
arm-cca-guest virt: arm-cca-guest: TSM_REPORT support for realms 2024-10-23 10:19:33 +01:00
efi_secret virt: efi_secret: Convert to platform remove callback returning void 2024-03-09 11:37:18 +01:00
pkvm-guest drivers/virt: pkvm: Intercept ioremap using pKVM MMIO_GUARD hypercall 2024-08-30 16:30:41 +01:00
sev-guest virt: sev-guest: Ensure the SNP guest messages do not exceed a page 2024-08-27 10:35:38 +02:00
tdx-guest [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
Kconfig virt: arm-cca-guest: TSM_REPORT support for realms 2024-10-23 10:19:33 +01:00
Makefile virt: arm-cca-guest: TSM_REPORT support for realms 2024-10-23 10:19:33 +01:00
tsm.c x86/sev: Extend the config-fs attestation support for an SVSM 2024-06-17 20:42:57 +02:00