]> git.baikalelectronics.ru Git - kernel.git/commit
x86/sev: Replace occurrences of sev_active() with cc_platform_has()
authorTom Lendacky <thomas.lendacky@amd.com>
Wed, 8 Sep 2021 22:58:37 +0000 (17:58 -0500)
committerBorislav Petkov <bp@suse.de>
Mon, 4 Oct 2021 09:46:58 +0000 (11:46 +0200)
commit6078f2626957e9de61a16ea3dd6903c49203109c
treedde3455d1a40572c7d51ef373b3e027031ddbf20
parentde148d9ca2af744735866cb21abb4c0d838ec127
x86/sev: Replace occurrences of sev_active() with cc_platform_has()

Replace uses of sev_active() with the more generic cc_platform_has()
using CC_ATTR_GUEST_MEM_ENCRYPT. If future support is added for other
memory encryption technologies, the use of CC_ATTR_GUEST_MEM_ENCRYPT
can be updated, as required.

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-7-bp@alien8.de
arch/x86/include/asm/mem_encrypt.h
arch/x86/kernel/crash_dump_64.c
arch/x86/kernel/kvm.c
arch/x86/kernel/kvmclock.c
arch/x86/kernel/machine_kexec_64.c
arch/x86/kvm/svm/svm.c
arch/x86/mm/ioremap.c
arch/x86/mm/mem_encrypt.c
arch/x86/platform/efi/efi_64.c