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>
Wed, 17 Nov 2021 10:04:52 +0000 (11:04 +0100)
commit8c57c9ff7e88d6c725d19744afadde9cb5447aa2
treec857c3a8e02ca4c1713b0d61333dcd5d1904feda
parent0e1cd02ff0d89793681aabf0bc56f26ebd4273dd
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