Documentation/virt/coco/csv-guest.rst
0 → 100644
+33
−0
+2
−0
arch/x86/kvm/svm/csv.c
0 → 100644
+112
−0
Loading
Merge Pull Request from: @hanliyang Support request attestation report from CSV guest issue: https://gitee.com/open_euler/dashboard?issue_id=I98W95 The ATTESTATION function allows the users of CSV virtual machine to obtain an attestation report, and the 3rd party can verify the identity of the user. The attestation report contains the key authentication information of the CSV virtual machine and is signed by the PSP. The plaintext of the attestation report can only be obtained inside the CSV virtual machine, VMM and system software of the host can not spy and forge the attestation report. To support this functionality, the CSV virtual machine kernel uses a similar approach to confidential computing virtual machines such as SEV, providing an ioctl interface through a csv-guest driver, through which the user of CSV virtual machine initiates hypercall requests. KVM converts hypercall requests into ATTESTATION API requests and sends them to the PSP. The CSV virtual machine kernel must be compiled with the following configuration: CONFIG_HYGON_CSV=y CONFIG_VIRT_DRIVERS=y CONFIG_CSV_GUEST=m Test: 1. boot and login to the CSV guest, and install csv-guest kernel module 2. Run ioclt-get-attestation in the CSV guest, which will generate a report.cert file and send it to 'machine2' 3. Use he gadget verify-attestation on 'machine2' to verify the attestation report Link:https://gitee.com/openeuler/kernel/pulls/5258 Reviewed-by:Kevin Zhu <zhukeqian1@huawei.com> Signed-off-by:
Zhang Peng <zhangpeng362@huawei.com>