]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: ccp - allow callers to use HV-Fixed page API when SEV is disabled
authorAshish Kalra <ashish.kalra@amd.com>
Fri, 6 Feb 2026 21:26:45 +0000 (21:26 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 28 Feb 2026 03:51:58 +0000 (12:51 +0900)
commit8168a7b72bdee3790b126f63bd30306759206b15
tree866b08abe33125823b0cd04be1e587b950b58561
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
crypto: ccp - allow callers to use HV-Fixed page API when SEV is disabled

When SEV is disabled, the HV-Fixed page allocation call fails, which in
turn causes SFS initialization to fail.

Fix the HV-Fixed API so callers (for example, SFS) can use it even when
SEV is disabled by performing normal page allocation and freeing.

Fixes: e09701dcdd9c ("crypto: ccp - Add new HV-Fixed page allocation/free API")
Cc: stable@vger.kernel.org
Signed-off-by: Ashish Kalra <ashish.kalra@amd.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/sev-dev.c