Add mediated ccp driver support for hygon crypto technology.

Signed-off-by: Yabin Li <liyabin@hygon.cn>
Signed-off-by: yangdepei <yangdepei@hygon.cn>
This commit is contained in:
Yabin Li 2024-04-25 19:17:41 +08:00 committed by yangdepei
parent 861bd616fb
commit 346dc8c7ca
3 changed files with 2211 additions and 0 deletions

View File

@ -53,6 +53,19 @@ config HYGON_GM
help
Hygon GM ccp driver
config CRYPTO_DEV_HCT
tristate "HCT CCP device"
default m
depends on X86_64
select VFIO_MDEV
help
Provides hygon crypto technology ccp device driver.
Support virtualize ccp devices based on mediated devices.
Support multi-process and virtual machines.
Support host-noiommu mode memory encryption function.
Support compiling hct.ko when mdev module is disabled.
If you choose 'M' here, this module will be called hct ccp.
config CRYPTO_DEV_CCP_DEBUGFS
bool "Enable CCP Internals in DebugFS"
default n

View File

@ -18,6 +18,8 @@ ccp-$(CONFIG_CRYPTO_DEV_SP_PSP) += psp-dev.o \
hygon/psp-dev.o \
hygon/csv-dev.o
obj-$(CONFIG_CRYPTO_DEV_HCT) += hygon/hct.o
obj-$(CONFIG_CRYPTO_DEV_CCP_CRYPTO) += ccp-crypto.o
ccp-crypto-objs := ccp-crypto-main.o \
ccp-crypto-aes.o \

File diff suppressed because it is too large Load Diff