Bug 8628 - Support for Hygon Trusted Key Management (TKM) virtualization
Summary: Support for Hygon Trusted Key Management (TKM) virtualization
Status: NEW
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: X86 (show other bugs) X86
Version: unspecified
Hardware: x86_64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Guanjun
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-25 20:12 UTC by xiongmengbiao
Modified: 2024-03-27 14:57 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xiongmengbiao hygon_group 2024-03-25 20:12:31 UTC
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:
Comment 1 小龙 admin 2024-03-27 14:57:29 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/2955