]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/TdxLib/TdxLibNull.c
5 Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #include <Uefi/UefiBaseType.h>
11 #include <Library/TdxLib.h>
14 This function accepts a pending private page, and initialize the page to
15 all-0 using the TD ephemeral private key.
17 @param[in] StartAddress Guest physical address of the private page
19 @param[in] NumberOfPages Number of the pages to be accepted.
20 @param[in] PageSize GPA page size. Accept 1G/2M/4K page size.
27 IN UINT64 StartAddress
,
28 IN UINT64 NumberOfPages
,
32 return EFI_UNSUPPORTED
;
36 This function extends one of the RTMR measurement register
37 in TDCS with the provided extension data in memory.
38 RTMR extending supports SHA384 which length is 48 bytes.
40 @param[in] Data Point to the data to be extended
41 @param[in] DataLen Length of the data. Must be 48
42 @param[in] Index RTMR index
45 @return EFI_INVALID_PARAMETER
46 @return EFI_DEVICE_ERROR
57 return EFI_UNSUPPORTED
;
61 This function gets the Td guest shared page mask.
63 The guest indicates if a page is shared using the Guest Physical Address
64 (GPA) Shared (S) bit. If the GPA Width(GPAW) is 48, the S-bit is bit-47.
65 If the GPAW is 52, the S-bit is bit-51.
67 @return Shared page bit mask
79 This function gets the maximum number of Virtual CPUs that are usable for
82 @return maximum Virtual CPUs number
94 This function gets the number of Virtual CPUs that are usable for Td
97 @return Virtual CPUs number