Description of problem: Add support to identify PSPCCP/NTBCCP on Hygon 4th CPUs, print necessary security features of Hygon CPUs. 1. Add support to identify PSPCCP/NTBCCP on Hygon 4th CPUs, the vendor/device ID pairs 0x1d94/0x1486, 0x1d94/0x14a6 are used to identify PSPCCP of Hygon 4th CPUs, the vendor/device ID pair 0x1d94/0x14b8 is used to identify NTBCCP of Hygon 4th CPUs. 2. Print necessary security features of Hygon CPUs, these feature infos are listed below: a. print SME/CSV/CSV2 active info in kernel log b. print Hygon CSV API version info during device driver initialization c. print Hygon CSV/CSV2 support info in KVM module d. print csv/csv2 feature flags in /proc/cpuinfo e. print SM3/SM4 feature flags in /proc/cpuinfo f. print CSV3 feature flag in /proc/cpuinfo g. clear sme feature flag in /proc/cpuinfo iff host linux boot with mem_encrypt=off or the host linux is compiled with CONFIG_AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT=n 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/2904