+100
−0
+23
−0
Loading
!5243 [OLK-6.6] Support PSP identification for Hygon 4th CPU and print secure features when running on Hygon CPUs Merge Pull Request from: @hanliyang Support PSP identification for Hygon 4th CPU and print secure features when running on Hygon CPUs issue: https://gitee.com/open_euler/dashboard?issue_id=I98NP1 The PCI device IDs of the Cryptographic Co-Processor contained in the Hygon 4th CPU are different from that of Hygon 2nd/3rd CPUs, so the ID information needs to be added to the id table of the kernel driver. In addition, Hygon CPUs support many security features, such as SME, CSV, CSV2, CSV3, SM3, SM4. Add patch to print these features in the kernel log so that users can check and utilize these security features easily. Test: 1. The lspci tool indicates that the Cryptographic Co-Processors are binds to the driver. 2. The host kernel will print SME is active, and the guest kernel will print CSV/CSV2 is active 3. The Cryptographic Co-Processor driver print CSV version info, the KVM module print CSV support info 4. The lscpu tool display csv,csv2 feature flags 5. The lscpu tool display sm3,sm4 feature flags 6. The lscpu tool display csv3 feature flag 7. If the host kernel is not using SME, then the sme feature info is cleared; If the host kernel is using SME, then the sme feature info will be displayed. Link:https://gitee.com/openeuler/kernel/pulls/5243 Reviewed-by:Jason Zeng <jason.zeng@intel.com> Signed-off-by:
Zhang Peng <zhangpeng362@huawei.com>