1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/arch/x86/kernel/cpu/mtrr
Borislav Petkov (AMD) 0ecaefb303 x86/CPU/AMD: Track SNP host status with cc_platform_*()
The host SNP worthiness can determined later, after alternatives have
been patched, in snp_rmptable_init() depending on cmdline options like
iommu=pt which is incompatible with SNP, for example.

Which means that one cannot use X86_FEATURE_SEV_SNP and will need to
have a special flag for that control.

Use that newly added CC_ATTR_HOST_SEV_SNP in the appropriate places.

Move kdump_sev_callback() to its rightful place, while at it.

Fixes: 216d106c7f ("x86/sev: Add SEV-SNP host initialization support")
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Tested-by: Srikanth Aithal <sraithal@amd.com>
Link: https://lore.kernel.org/r/20240327154317.29909-6-bp@alien8.de
2024-04-04 10:40:30 +02:00
..
amd.c x86/mtrr: Replace vendor tests in MTRR code 2023-06-01 15:04:32 +02:00
centaur.c x86/mtrr: Remove unused code 2023-06-01 15:04:33 +02:00
cleanup.c x86/mtrr: Unify debugging printing 2023-06-01 15:04:33 +02:00
cyrix.c x86/mtrr: Replace vendor tests in MTRR code 2023-06-01 15:04:32 +02:00
generic.c x86/CPU/AMD: Track SNP host status with cc_platform_*() 2024-04-04 10:40:30 +02:00
if.c proc: convert everything to "struct proc_ops" 2020-02-04 03:05:26 +00:00
legacy.c x86/mtrr: Allocate mtrr_value array dynamically 2023-06-01 15:04:33 +02:00
Makefile x86/mtrr: Move 32-bit code from mtrr.c to legacy.c 2023-06-01 15:04:33 +02:00
mtrr.c x86/mtrr: Unify debugging printing 2023-06-01 15:04:33 +02:00
mtrr.h x86/mtrr: Unify debugging printing 2023-06-01 15:04:33 +02:00