summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Library/CcExitLib/CcExitTd.h
blob: 013a55e2078c92495a6d122fc50d215b99cf6e4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/** @file

  Copyright (c) 2020 - 2021, Intel Corporation. All rights reserved.<BR>
  SPDX-License-Identifier: BSD-2-Clause-Patent

**/

#ifndef CC_EXIT_TD_H_
#define CC_EXIT_TD_H_

#include <Base.h>
#include <Uefi.h>

/**
  This function enable the TD guest to request the VMM to emulate CPUID
  operation, especially for non-architectural, CPUID leaves.

  @param[in]  Eax        Main leaf of the CPUID
  @param[in]  Ecx        Sub-leaf of the CPUID
  @param[out] Results    Returned result of CPUID operation

  @return EFI_SUCCESS
**/
EFI_STATUS
EFIAPI
TdVmCallCpuid (
  IN UINT64  Eax,
  IN UINT64  Ecx,
  OUT VOID   *Results
  );

#endif