mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 09:22:27 +00:00
In preparation of extending cc_platform_has() API to support TDX guest, use CPUID instruction to detect support for TDX guests in the early boot code (via tdx_early_init()). Since copy_bootdata() is the first user of cc_platform_has() API, detect the TDX guest status before it. Define a synthetic feature flag (X86_FEATURE_TDX_GUEST) and set this bit in a valid TDX guest platform. Signed-off-by: Kuppuswamy Sathyanarayanan <[email protected]> Signed-off-by: Kirill A. Shutemov <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Reviewed-by: Andi Kleen <[email protected]> Reviewed-by: Tony Luck <[email protected]> Reviewed-by: Dave Hansen <[email protected]> Reviewed-by: Borislav Petkov <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
9 lines
184 B
Makefile
9 lines
184 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
CFLAGS_REMOVE_core.o = -pg
|
|
KASAN_SANITIZE_core.o := n
|
|
CFLAGS_core.o += -fno-stack-protector
|
|
|
|
obj-y += core.o
|
|
|
|
obj-$(CONFIG_INTEL_TDX_GUEST) += tdx/
|