Skip to content
Commit d98c65ab authored by Sami Mujawar's avatar Sami Mujawar Committed by Steven Price
Browse files

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's avatarSami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Suzuki Poulose's avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Steven Price's avatarSteven Price <steven.price@arm.com>
---
Changes since v6:
 * Avoid get_cpu() and instead make the init attestation call using
   smp_call_function_single(). Improve comments to explain the logic.
 * Minor code reorgnisation and comment cleanup following Gavin's review
   (thanks!)
parent 5ad2d0f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment