x86/sev: Add an x86 version of cc_platform_has()
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 8 Sep 2021 22:58:34 +0000 (17:58 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:17:21 +0000 (19:17 +0100)
commit411d939db1d05be79f29cdeef87b1f9a46a54121
tree94a01630bab2207c58da6acfd4ea3c2cf406b767
parentd1568346180023918716cc23cc58ba0ab7ca80cf
x86/sev: Add an x86 version of cc_platform_has()

commit aa5a461171f98fde0df78c4f6b5018a1e967cf81 upstream.

Introduce an x86 version of the cc_platform_has() function. This will be
used to replace vendor specific calls like sme_active(), sev_active(),
etc.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210928191009.32551-4-bp@alien8.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/Kconfig
arch/x86/include/asm/mem_encrypt.h
arch/x86/kernel/Makefile
arch/x86/kernel/cc_platform.c [new file with mode: 0644]
arch/x86/mm/mem_encrypt.c