x86/kvm/Kconfig: Have KVM_AMD_SEV select ARCH_HAS_CC_PLATFORM
authorBorislav Petkov (AMD) <bp@alien8.de>
Wed, 27 Mar 2024 15:43:15 +0000 (16:43 +0100)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 4 Apr 2024 08:40:23 +0000 (10:40 +0200)
commit54f5f47b6055c6b57cbc41a440f8ca8b2ec4275a
tree31086c4beef03f36bf1db42bfe9c64b7747425cb
parent99485c4c026f024e7cb82da84c7951dbe3deb584
x86/kvm/Kconfig: Have KVM_AMD_SEV select ARCH_HAS_CC_PLATFORM

The functionality to load SEV-SNP guests by the host will soon rely on
cc_platform* helpers because the cpu_feature* API with the early
patching is insufficient when SNP support needs to be disabled late.

Therefore, pull that functionality in.

Fixes: 216d106c7ff7 ("x86/sev: Add SEV-SNP host initialization support")
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Tested-by: Srikanth Aithal <sraithal@amd.com>
Link: https://lore.kernel.org/r/20240327154317.29909-4-bp@alien8.de
arch/x86/kvm/Kconfig