VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Library/BaseLib/IntelTdxNull.c@ 107675

最後變更 在這個檔案從107675是 99404,由 vboxsync 提交於 2 年 前

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.8 KB
 
1/** @file
2
3 Null stub of TdxLib
4
5 Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8**/
9
10#include <Library/BaseLib.h>
11#include <Uefi/UefiBaseType.h>
12
13/**
14 The TDCALL instruction causes a VM exit to the Intel TDX module. It is
15 used to call guest-side Intel TDX functions, either local or a TD exit
16 to the host VMM, as selected by Leaf.
17 Leaf functions are described at <https://software.intel.com/content/
18 www/us/en/develop/articles/intel-trust-domain-extensions.html>
19
20 @param[in] Leaf Leaf number of TDCALL instruction
21 @param[in] Arg1 Arg1
22 @param[in] Arg2 Arg2
23 @param[in] Arg3 Arg3
24 @param[in,out] Results Returned result of the Leaf function
25
26 @return EFI_SUCCESS
27 @return Other See individual leaf functions
28**/
29UINTN
30EFIAPI
31TdCall (
32 IN UINT64 Leaf,
33 IN UINT64 Arg1,
34 IN UINT64 Arg2,
35 IN UINT64 Arg3,
36 IN OUT VOID *Results
37 )
38{
39 return EFI_UNSUPPORTED;
40}
41
42/**
43 TDVMALL is a leaf function 0 for TDCALL. It helps invoke services from the
44 host VMM to pass/receive information.
45
46 @param[in] Leaf Number of sub-functions
47 @param[in] Arg1 Arg1
48 @param[in] Arg2 Arg2
49 @param[in] Arg3 Arg3
50 @param[in] Arg4 Arg4
51 @param[in,out] Results Returned result of the sub-function
52
53 @return EFI_SUCCESS
54 @return Other See individual sub-functions
55
56**/
57UINTN
58EFIAPI
59TdVmCall (
60 IN UINT64 Leaf,
61 IN UINT64 Arg1,
62 IN UINT64 Arg2,
63 IN UINT64 Arg3,
64 IN UINT64 Arg4,
65 IN OUT VOID *Results
66 )
67{
68 return EFI_UNSUPPORTED;
69}
70
71/**
72 Probe if TD is enabled.
73
74 @return TRUE TD is enabled.
75 @return FALSE TD is not enabled.
76**/
77BOOLEAN
78EFIAPI
79TdIsEnabled (
80 )
81{
82 return FALSE;
83}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette