]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Include/Library/TdxLib.h
55f0436cca1f1af3dba2a177c4a350def1235713
4 Copyright (c) 2020 - 2021, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
13 This function accepts a pending private page, and initialize the page to
14 all-0 using the TD ephemeral private key.
16 @param[in] StartAddress Guest physical address of the private page
17 to accept. [63:52] and [11:0] must be 0.
18 @param[in] NumberOfPages Number of the pages to be accepted.
19 @param[in] PageSize GPA page size. Accept 2M/4K page size.
26 IN UINT64 StartAddress
,
27 IN UINT64 NumberOfPages
,
32 This function extends one of the RTMR measurement register
33 in TDCS with the provided extension data in memory.
34 RTMR extending supports SHA384 which length is 48 bytes.
36 @param[in] Data Point to the data to be extended
37 @param[in] DataLen Length of the data. Must be 48
38 @param[in] Index RTMR index
41 @return EFI_INVALID_PARAMETER
42 @return EFI_DEVICE_ERROR
54 This function gets the Td guest shared page mask.
56 The guest indicates if a page is shared using the Guest Physical Address
57 (GPA) Shared (S) bit. If the GPA Width(GPAW) is 48, the S-bit is bit-47.
58 If the GPAW is 52, the S-bit is bit-51.
60 @return Shared page bit mask
69 This function gets the maximum number of Virtual CPUs that are usable for
72 @return maximum Virtual CPUs number
81 This function gets the number of Virtual CPUs that are usable for Td
84 @return Virtual CPUs number