TianoCore EDK2 master
|
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <IndustryStandard/Tdx.h>
#include <Uefi/UefiBaseType.h>
#include <Library/TdxLib.h>
#include <Library/BaseMemoryLib.h>
Go to the source code of this file.
Functions | |
BOOLEAN | GetTdInfo (VOID) |
UINT64 EFIAPI | TdSharedPageMask (VOID) |
UINT32 EFIAPI | TdMaxVCpuNum (VOID) |
UINT32 EFIAPI | TdVCpuNum (VOID) |
Variables | |
UINT64 | mTdSharedPageMask = 0 |
UINT32 | mTdMaxVCpuNum = 0 |
UINT32 | mTdVCpuNum = 0 |
BOOLEAN | mTdDataReturned = FALSE |
Fetch the Tdx info.
Copyright (c) 2021, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file TdInfo.c.
BOOLEAN GetTdInfo | ( | VOID | ) |
This function call TDCALL_TDINFO to get the TD_RETURN_DATA. If the TDCALL is successful, populate below variables:
UINT32 EFIAPI TdMaxVCpuNum | ( | VOID | ) |
UINT64 EFIAPI TdSharedPageMask | ( | VOID | ) |
This function gets the Td guest shared page mask.
The guest indicates if a page is shared using the Guest Physical Address (GPA) Shared (S) bit. If the GPA Width(GPAW) is 48, the S-bit is bit-47. If the GPAW is 52, the S-bit is bit-51.
UINT32 EFIAPI TdVCpuNum | ( | VOID | ) |