From nobody Sun Feb 8 22:57:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+89030+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+89030+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1650328006; cv=none; d=zohomail.com; s=zohoarc; b=WpgFjO9qwfqw6+pz3bdNIkplOZJgaxi8rMAZcjouqShOJnEeoydWqsyPfwpoqTlAoiYeR4Gn9MC1nNB1zVyAlTBUxxoUxkcSP8X1StClLqs7lWVMuQgXYHB20bAkHFuxjUGljq9O+rgWCL6PFSZ1/A0wk8Ol+AjNk57Xt3hryF0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650328006; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=DTrKbrbB+XL4vouvrVTUsXUmLrOj/w2lu9aRSZirXik=; b=fFVomJEaScdwBlQCuzxdrsNdzvkf1T3yvbMWYMOs5RJKiAYVM7TNTgHQMMqAvLH3c6gRJzCirWO7bmH6J+MZBraX5WEjfeCqZDM3En+1taZN+czbbpjaKKlnnLgntm8LAczkvWZ40hhBfiqzo749ik+Lr69/li4gWWZIkdziLaM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+89030+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1650328006083524.9442197974233; Mon, 18 Apr 2022 17:26:46 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id HLcDYY1788612x4mnbaHhkCm; Mon, 18 Apr 2022 17:26:45 -0700 X-Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web08.3858.1650328002343868729 for ; Mon, 18 Apr 2022 17:26:45 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10321"; a="326540303" X-IronPort-AV: E=Sophos;i="5.90,271,1643702400"; d="scan'208";a="326540303" X-Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2022 17:26:44 -0700 X-IronPort-AV: E=Sophos;i="5.90,271,1643702400"; d="scan'208";a="529079938" X-Received: from mxu9-mobl1.ccr.corp.intel.com ([10.249.171.121]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Apr 2022 17:26:41 -0700 From: "Min Xu" To: devel@edk2.groups.io Cc: Min Xu , Michael D Kinney , Liming Gao , Zhiguang Liu , James Bottomley , Jiewen Yao , Gerd Hoffmann , Brijesh Singh , Erdem Aktas , Tom Lendacky Subject: [edk2-devel] [PATCH V4 1/7] MdePkg: Add CC_GUEST_TYPE in ConfidentialComputingGuestAttr.h Date: Tue, 19 Apr 2022 08:26:22 +0800 Message-Id: <004da33b7bd5923c91e72ae68912b3f660bae751.1650326140.git.min.m.xu@intel.com> In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,min.m.xu@intel.com X-Gm-Message-State: asdy1jpHx8KJ6ZLUj3xTahbux1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1650328005; bh=jXnDBLxnRxSOVfsenG9DLhXAP0JKLaU4GSxHxr6vAa8=; h=Cc:Date:From:Reply-To:Subject:To; b=J+LSUqwG6J8QhRl/6QZFeDVixM+hi5a2wrMFi7tOauKFNgwsge77CDecWtXO5SGVCSP Mb/vbPDPdL72Q7MCv23OLsnP6+M3BASihDcLa9aHsJkDDA9RcluV73ROwscxnZsD/rJS1 0/mjXRAlpIEbnhRugncp+pYoM1dwg9wO3e0= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1650328006310100005 Content-Type: text/plain; charset="utf-8" BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3902 The confidential computing guest type (GUEST_TYPE) was defined in OvmfPkg/Include/WorkArea.h. Now it is to be moved to MdePkg/Include/ConfidentialComputingGuestAttr.h and renamed as CC_GUEST_TYPE. There are 2 reasons for this change. 1. CC_GUEST_TYPE is a generic definition and will be used in CcProbeLib which is defined in MdePkg. 2. Based on the latest edk2 coding style: - First character should be upper case - Must contain lower case characters - No white space characters - Global variable name must start with a 'g' As the first step CC_GUEST_TYPE is defined in this patch. In the next patch GUEST_TYPE will be deleted. This is to make sure the bisect work correctly. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: James Bottomley Cc: Jiewen Yao Cc: Gerd Hoffmann Cc: Brijesh Singh Cc: Erdem Aktas Cc: Tom Lendacky Reviewed-by: Liming Gao Reviewed-by: Jiewen Yao Reviewed-by: Tom Lendacky Signed-off-by: Min Xu --- MdePkg/Include/ConfidentialComputingGuestAttr.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/MdePkg/Include/ConfidentialComputingGuestAttr.h b/MdePkg/Inclu= de/ConfidentialComputingGuestAttr.h index dd2541c6dcdf..44e6df800207 100644 --- a/MdePkg/Include/ConfidentialComputingGuestAttr.h +++ b/MdePkg/Include/ConfidentialComputingGuestAttr.h @@ -1,5 +1,5 @@ /** @file -Definitions for Confidential Computing Attribute +Definitions for Confidential Computing Guest Attributes =20 Copyright (c) 2021 AMD Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent @@ -9,6 +9,15 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #ifndef CONFIDENTIAL_COMPUTING_GUEST_ATTR_H_ #define CONFIDENTIAL_COMPUTING_GUEST_ATTR_H_ =20 +// +// Confidential computing guest type +// +typedef enum { + CcGuestTypeNonEncrypted =3D 0, + CcGuestTypeAmdSev, + CcGuestTypeIntelTdx, +} CC_GUEST_TYPE; + typedef enum { /* The guest is running with memory encryption disabled. */ CCAttrNotEncrypted =3D 0, --=20 2.29.2.windows.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#89030): https://edk2.groups.io/g/devel/message/89030 Mute This Topic: https://groups.io/mt/90552651/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-