VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/OvmfPkg/Library/CcProbeLib/SecPeiCcProbeLib.c@ 99404

Last change on this file since 99404 was 99404, checked in by vboxsync, 2 years ago

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

  • Property svn:eol-style set to native
File size: 626 bytes
Line 
1/** @file
2
3 CcProbeLib is used to probe the Confidential computing guest type.
4
5 Copyright (c) 2022, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8**/
9
10#include <Library/CcProbeLib.h>
11#include <WorkArea.h>
12
13/**
14 Probe the ConfidentialComputing Guest type. See defition of
15 CC_GUEST_TYPE in <ConfidentialComputingGuestAttr.h>.
16
17 @return The guest type
18
19**/
20UINT8
21EFIAPI
22CcProbe (
23 VOID
24 )
25{
26 OVMF_WORK_AREA *WorkArea;
27
28 WorkArea = (OVMF_WORK_AREA *)FixedPcdGet32 (PcdOvmfWorkAreaBase);
29
30 return WorkArea != NULL ? WorkArea->Header.GuestType : CcGuestTypeNonEncrypted;
31}
Note: See TracBrowser for help on using the repository browser.

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