2 Definitions for Confidential Computing Attribute
4 Copyright (c) 2021 AMD Inc. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef CONFIDENTIAL_COMPUTING_GUEST_ATTR_H_
10 #define CONFIDENTIAL_COMPUTING_GUEST_ATTR_H_
13 /* The guest is running with memory encryption disabled. */
14 CCAttrNotEncrypted
= 0,
16 /* The guest is running with AMD SEV memory encryption enabled. */
18 CCAttrAmdSevEs
= 0x101,
19 CCAttrAmdSevSnp
= 0x102,
21 /* The guest is running with Intel TDX memory encryption enabled. */
22 CCAttrIntelTdx
= 0x200,
23 } CONFIDENTIAL_COMPUTING_GUEST_ATTR
;
25 #define CC_GUEST_IS_TDX(x) ((x) == CCAttrIntelTdx)
26 #define CC_GUEST_IS_SEV(x) ((x) == CCAttrAmdSev || (x) == CCAttrAmdSevEs || (x) == CCAttrAmdSevSnp)