]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: ccp - Cache SEV platform status and platform state
authorAshish Kalra <ashish.kalra@amd.com>
Mon, 21 Jul 2025 14:12:51 +0000 (14:12 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 16 Aug 2025 09:20:23 +0000 (17:20 +0800)
commit459daec42ea0cf5e276dfb82e90ed91e2db45d9e
treea6154fa19a7a83eaa9a8ffcb2f5f1b7229e8242f
parent450bbe43ef90a213d66fac1def64050d9d9ada8e
crypto: ccp - Cache SEV platform status and platform state

Cache the SEV platform status into sev_device structure and use this
cached SEV platform status for api_major/minor/build.

The platform state is unique between SEV and SNP and hence needs to be
tracked independently.

Remove the state field from sev_device structure and instead track SEV
state from the cached SEV platform status.

Suggested-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
Reviewed-by: Kim Phillips <kim.phillips@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/sev-dev.c
drivers/crypto/ccp/sev-dev.h