TianoCore EDK2
master
Loading...
Searching...
No Matches
IntelTdx.c
Go to the documentation of this file.
1
10
#include <
PiPei.h
>
11
#include <
Library/BaseLib.h
>
12
#include <
Library/DebugLib.h
>
13
#include <
Library/HobLib.h
>
14
#include <
Library/BaseMemoryLib.h
>
15
#include <
Library/MemoryAllocationLib.h
>
16
#include <
IndustryStandard/Tdx.h
>
17
#include <
IndustryStandard/QemuFwCfg.h
>
18
#include <
Library/QemuFwCfgLib.h
>
19
#include <
Library/PeiServicesLib.h
>
20
#include <
Library/TdxLib.h
>
21
#include <
Library/TdxHelperLib.h
>
22
#include <
Library/PlatformInitLib.h
>
23
#include <
WorkArea.h
>
24
#include <
ConfidentialComputingGuestAttr.h
>
25
#include "
Platform.h
"
26
31
VOID
32
IntelTdxInitialize
(
33
VOID
34
)
35
{
36
#ifdef MDE_CPU_X64
37
RETURN_STATUS PcdStatus;
38
39
if
(!
TdIsEnabled
()) {
40
return
;
41
}
42
43
PcdStatus =
PcdSet64S
(PcdConfidentialComputingGuestAttr, CCAttrIntelTdx);
44
ASSERT_RETURN_ERROR
(PcdStatus);
45
46
PcdStatus =
PcdSet64S
(PcdTdxSharedBitMask,
TdSharedPageMask
());
47
ASSERT_RETURN_ERROR
(PcdStatus);
48
49
#endif
50
}
BaseLib.h
BaseMemoryLib.h
ConfidentialComputingGuestAttr.h
HobLib.h
DebugLib.h
ASSERT_RETURN_ERROR
#define ASSERT_RETURN_ERROR(StatusParameter)
Definition:
DebugLib.h:493
TdIsEnabled
BOOLEAN EFIAPI TdIsEnabled()
Definition:
IntelTdxNull.c:79
MemoryAllocationLib.h
Platform.h
PcdSet64S
#define PcdSet64S(TokenName, Value)
Definition:
PcdLib.h:511
PeiServicesLib.h
PiPei.h
PlatformInitLib.h
IntelTdxInitialize
VOID IntelTdxInitialize(VOID)
Definition:
IntelTdx.c:32
QemuFwCfg.h
QemuFwCfgLib.h
Tdx.h
TdxHelperLib.h
TdxLib.h
TdSharedPageMask
UINT64 EFIAPI TdSharedPageMask(VOID)
Definition:
TdInfo.c:68
WorkArea.h
OvmfPkg
PlatformPei
IntelTdx.c
Generated on Fri Nov 15 2024 18:01:21 for TianoCore EDK2 by
1.9.6