2 Defines the defitions used by TDX in OvmfPkg.
4 Copyright (c) 2020 - 2021, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef OVMF_INTEL_TDX_H_
10 #define OVMF_INTEL_TDX_H_
13 #include <Library/BaseLib.h>
14 #include <Uefi/UefiSpec.h>
15 #include <Uefi/UefiBaseType.h>
17 #define MP_CPU_PROTECTED_MODE_MAILBOX_APICID_INVALID 0xFFFFFFFF
18 #define MP_CPU_PROTECTED_MODE_MAILBOX_APICID_BROADCAST 0xFFFFFFFE
21 MpProtectedModeWakeupCommandNoop
= 0,
22 MpProtectedModeWakeupCommandWakeup
= 1,
23 MpProtectedModeWakeupCommandSleep
= 2,
24 MpProtectedModeWakeupCommandAcceptPages
= 3,
25 } MP_CPU_PROTECTED_MODE_WAKEUP_CMD
;
30 // Describes the CPU MAILBOX control structure use to
31 // wakeup cpus spinning in long mode
38 UINT8 ResvForOs
[2032];
40 // Arguments available for wakeup code
47 UINT64 NumCpusArriving
;
49 UINT64 NumCpusExiting
;
56 // AP relocation code information including code address and size,
57 // this structure will be shared be C code and assembly code.
58 // It is natural aligned by design.
61 UINT8
*RelocateApLoopFuncAddress
;
62 UINTN RelocateApLoopFuncSize
;