anolis-cloud-kernel/include/uapi
hanliyang 58792ceff6 anolis: virt: csv-guest: Add support for extended attestation aware request in the CSV3 guest
ANBZ: #22214

The struct csv3_data_attestation_report is the communication structure
between the CSV3 guest and Hygon PSP. The reserved1 field in the struct
csv3_data_attestation_report has been changed to a flags field, which is
used to store the attestation extension flags. When the flags field is 0,
the firmware returns a legacy attestation report; otherwise, it returns
an extended attestation report.

The struct csv_guest_user_data_attestation is the user-space buffer for
legacy attestation, and this buffer can provide challenge data (see the
user_data and mnonce fields) to the firmware.

The struct csv_guest_user_data_attestation_ext is the user-space buffer
for extended attestation, and it can also provide challenge data (see the
user_data and mnonce fields) to the firmware. Since user space always
provides a buffer larger than the struct csv_guest_user_data_attestation,
the csv-guest module cannot determine whether the user-space request is
for extended attestation. To address this, we added a magic field to the
struct csv_guest_user_data_attestation_ext. If the magic field is
populated with the string "ATTESTATION_EXT", the csv-guest module
considers this is an extended attestation request, and the flags field in
the struct csv_guest_user_data_attestation_ext will be copied to the
struct csv3_data_attestation_report so that the firmware will serve the
attestation request as intended.

The definition of the struct csv_guest_user_data_attestation has been
moved to the csv-guest local header file.

Signed-off-by: hanliyang <hanliyang@hygon.cn>
Reviewed-by: Guixin Liu <kanie@Linux.aliabab.com>
Reviewed-by: Guixin Liu <kanie@linux.alibaba.com>
Link: https://gitee.com/anolis/cloud-kernel/pulls/5464
2025-06-30 07:47:52 +00:00
..
asm-generic mm/ptshare: Add flag MAP_SHARED_PT to mmap() 2023-12-29 12:54:08 +00:00
drm anolis: riscv: uapi: add T-HEAD Light support 2023-02-26 01:51:05 +00:00
linux anolis: virt: csv-guest: Add support for extended attestation aware request in the CSV3 guest 2025-06-30 07:47:52 +00:00
misc habanalabs: Add an option to map CB to device MMU 2020-09-22 18:49:54 +03:00
mtd MTD: mtd-abi.h: drop a duplicated word 2020-08-02 23:00:10 +02:00
rdma anolis: net/smc: Introduce lockfree cq for smc 2023-06-15 15:18:50 +00:00
scsi scsi: qla2xxx: Change in PUREX to handle FPIN ELS requests 2020-07-01 22:24:16 -04:00
sound ALSA: fix kernel-doc markups 2020-10-26 15:26:31 +01:00
video
xen xen/gntdev: gntdev.h: drop a duplicated word 2020-08-03 07:46:42 +02:00
Kbuild