]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ccp - When TSME and SME both detected notify user
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 31 Mar 2022 21:12:13 +0000 (16:12 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 8 Apr 2022 08:26:43 +0000 (16:26 +0800)
commit9ebf1c2f84595ba80759f986b9a99a9d82775cc8
treeafe5b7e8153040f17982eb763d0e73def00fc0d9
parent9ec4aa5ddf5082071a462efb803cc1620a981664
crypto: ccp - When TSME and SME both detected notify user

CC_ATTR_HOST_MEM_ENCRYPT is used to relay that memory encryption has been
activated by the kernel.

As it's technically possible to enable both SME and TSME at the same time,
detect this scenario and notify the user that enabling TSME and SME at the
same time is unnecessary.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/psp-dev.c