summaryrefslogtreecommitdiffstats
path: root/arch/x86/boot/compressed/tdx.c
blob: 5f6d01a2f1f47efcac1d530c380a54963016c759 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// SPDX-License-Identifier: GPL-2.0

#include "../cpuflags.h"
#include "../string.h"

#include <asm/shared/tdx.h>

void early_tdx_detect(void)
{
	u32 eax, sig[3];

	cpuid_count(TDX_CPUID_LEAF_ID, 0, &eax, &sig[0], &sig[2],  &sig[1]);

	if (memcmp(TDX_IDENT, sig, sizeof(sig)))
		return;
}