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 13:04:32 +0000 (14:04 +0100)
commitfc25889a6617559aa1ba904d1c0873541d3c85bf
tree597a65bd10fd0431c46658da94e2b136d050ac28
parent74ba917cfdddbb6b1ad9c2fc4833bf1f810b27f9
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