Description of problem: 1.Support for Hygon Trusted Key Management (TKM) virtualization: When executing TKM commands in a QEMU virtual machine, it will use the vmmcall instruction to enter the kernel and transfer data from x86 to the PSP for processing. 2.Support for TKM Key Isolation Functionality: During QEMU startup, an index mapping QEMU process PIDs to TKM virtual IDs (vid) is established in the kernel through ioctl operations on the /dev/hygon_psp_config device. When x86 sends commands to the PSP, different key spaces are accessed based on different vid values, enabling different QEMU virtual machines to independently utilize different key spaces. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2955