VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/MdePkg/Include/ConfidentialComputingGuestAttr.h@ 101297

Last change on this file since 101297 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: 964 bytes
Line 
1/** @file
2Definitions for Confidential Computing Guest Attributes
3
4Copyright (c) 2021 AMD Inc. All rights reserved.<BR>
5SPDX-License-Identifier: BSD-2-Clause-Patent
6
7**/
8
9#ifndef CONFIDENTIAL_COMPUTING_GUEST_ATTR_H_
10#define CONFIDENTIAL_COMPUTING_GUEST_ATTR_H_
11
12//
13// Confidential computing guest type
14//
15typedef enum {
16 CcGuestTypeNonEncrypted = 0,
17 CcGuestTypeAmdSev,
18 CcGuestTypeIntelTdx,
19} CC_GUEST_TYPE;
20
21typedef enum {
22 /* The guest is running with memory encryption disabled. */
23 CCAttrNotEncrypted = 0,
24
25 /* The guest is running with AMD SEV memory encryption enabled. */
26 CCAttrAmdSev = 0x100,
27 CCAttrAmdSevEs = 0x101,
28 CCAttrAmdSevSnp = 0x102,
29
30 /* The guest is running with Intel TDX memory encryption enabled. */
31 CCAttrIntelTdx = 0x200,
32} CONFIDENTIAL_COMPUTING_GUEST_ATTR;
33
34#define CC_GUEST_IS_TDX(x) ((x) == CCAttrIntelTdx)
35#define CC_GUEST_IS_SEV(x) ((x) == CCAttrAmdSev || (x) == CCAttrAmdSevEs || (x) == CCAttrAmdSevSnp)
36
37#endif
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