]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
powerpc/pseries/svm: Add a powerpc version of cc_platform_has()
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 8 Sep 2021 22:58:35 +0000 (17:58 -0500)
committerBorislav Petkov <bp@suse.de>
Mon, 4 Oct 2021 09:46:33 +0000 (11:46 +0200)
commitbfebd37e99dece9c83a373cf9f35def440fdd5df
tree9d4b863b219a4bce211af6981f8c3d00aec04ed1
parentaa5a461171f98fde0df78c4f6b5018a1e967cf81
powerpc/pseries/svm: Add a powerpc version of cc_platform_has()

Introduce a powerpc version of the cc_platform_has() function. This will
be used to replace the powerpc mem_encrypt_active() implementation, so
the implementation will initially only support the CC_ATTR_MEM_ENCRYPT
attribute.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lkml.kernel.org/r/20210928191009.32551-5-bp@alien8.de
arch/powerpc/platforms/pseries/Kconfig
arch/powerpc/platforms/pseries/Makefile
arch/powerpc/platforms/pseries/cc_platform.c [new file with mode: 0644]