Commit c74ae2c5 authored by Yabin Li's avatar Yabin Li Committed by yangdepei
Browse files

hct: add mediated ccp driver support for hygon crypto technology.

hygon inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I99ZNA



--------------------------------

Add the hct.ko driver module to support the HYGON Cryptography Technology
(HCT) Engine, which also supports CCP virtualization.

Signed-off-by: default avatarYabin Li <liyabin@hygon.cn>
Signed-off-by: default avataryangdepei <yangdepei@hygon.cn>
parent 641a2595
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8821,6 +8821,7 @@ CONFIG_TCG_HYGON=m
CONFIG_TCM_HYGON=m
CONFIG_TDM_DEV_HYGON=y
CONFIG_TDM_KERNEL_GUARD=m
CONFIG_CRYPTO_DEV_HCT=m
# CONFIG_CRYPTO_DEV_CCP_DEBUGFS is not set
CONFIG_CRYPTO_DEV_NITROX=m
CONFIG_CRYPTO_DEV_NITROX_CNN55XX=m
+12 −0
Original line number Diff line number Diff line
@@ -87,3 +87,15 @@ config TDM_KERNEL_GUARD
	  The key part of kernel is protected by TDM technology, SCT and IDT
	  are protected by default, and others are added later according to the
	  requirements.

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.
	  If you choose 'M' here, this module will be called hct ccp.
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@ ccp-$(CONFIG_CRYPTO_DEV_SP_PSP) += psp-dev.o \

ccp-$(CONFIG_TDM_DEV_HYGON) += hygon/tdm-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 \
+2182 −0

File added.

Preview size limit exceeded, changes collapsed.