From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web10.5309.1592966021734773208 for ; Tue, 23 Jun 2020 19:33:41 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=JEp7GtAx; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: zhiguang.liu@intel.com) IronPort-SDR: qBgYXXwSkK/gfhaclSKBpsUHiQYh9YnW/hU8MzBx5yfEj52OKzUw1GOacIIMWz0SOYyfAdhvAx GPK+uy+4avbw== X-IronPort-AV: E=McAfee;i="6000,8403,9661"; a="132716587" X-IronPort-AV: E=Sophos;i="5.75,273,1589266800"; d="scan'208";a="132716587" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jun 2020 19:33:40 -0700 IronPort-SDR: MWHvsBN9ile3EdnfUBs3vuMxqJIzNX0vwMptPFjOvC7FlhlL/Ao3gT6Z3o8q8hQv98ULiVFRvX cA/J09woEiyQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,273,1589266800"; d="scan'208";a="311502469" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by fmsmga002.fm.intel.com with ESMTP; 23 Jun 2020 19:33:40 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 23 Jun 2020 19:33:27 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 23 Jun 2020 19:33:27 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 23 Jun 2020 19:33:27 -0700 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (104.47.37.51) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 23 Jun 2020 19:33:27 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OjXrYwjj5gb85JZE9A7Uy7CboZws7AeXOoAXGG8C3JLX0WWNe233UCvdYjGZynuhm3q76p6eRukXjIg2zN/750IIFcWwZiuNERRaYRmwNurUyF3LkOHzGILDsj8fYfRHL+pGTtNbMGMWRmJzYLb33DfMz/JHNNVMvzZnW1D8a14xusbJcfTSMQCka5HheVC6wPCzVGPc7covi/331wQZX8Qcux0i1qxqTWLJ0fGtdffT8TbmJNpdtQfpGnbfKPWjp97i4ItUHKbN9+mTU2wuyc04Nx3tlKK15Ia+voe72Oy2bsHc2z1gXEpvevd6a4J/97kqnojWwqJD7LhkH7fFRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8u5+LqZZa6YX0XvZ2DEsP1cfhURCaGkMA8nqGx1tQLc=; b=UMVDvlhtM46CEPP6AUjkHprmdHIG1bjbjOQbshpFapbYiSgECTEYzYZhBehpmpblA6ug/JQB/rdSqXPl6riKBWG6tbc2lZbo0yN+pwz8dEri1maYhOFE4+5YVsZVFBgCX6heHhRRqKNsIg70dOfV5BgKD8COKPUy1SVZEIBgBTXPFeMtT7TKA8rB/Fd3qd+yibRgsem0W8Fud6Vz8DNQ62IdiRAl0QHJZnYO22Fo4CFUaBAm4wVGkVxX5RKSPsdn9HOsZMSfP2jBFrmuF8vL+cPCA8WgZx10m+X6t2UY5x+IpltDfdtNbtqfOhMjUiDHX1zvTeRw1XtRbAH1f0FMng== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8u5+LqZZa6YX0XvZ2DEsP1cfhURCaGkMA8nqGx1tQLc=; b=JEp7GtAxmQtM4q3wZlHaWLs67DKT5hw5E5qs5LXOdiXsOGd3n6KQoNT08HkogFsEYuQqjZ3PjxwlvDG5m+fJW+K6CfpCyB5xW9EmRPVtuTBruruUwcMUtYOWptB2HGxVqbJ9BoLEN/13YPn/d6HXOY1yqc0CRfVxdkkromTZumA= Received: from CY4PR11MB1687.namprd11.prod.outlook.com (2603:10b6:903:2e::11) by CY4PR11MB1286.namprd11.prod.outlook.com (2603:10b6:903:2e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3109.22; Wed, 24 Jun 2020 02:33:25 +0000 Received: from CY4PR11MB1687.namprd11.prod.outlook.com ([fe80::1490:81c1:9ca1:df58]) by CY4PR11MB1687.namprd11.prod.outlook.com ([fe80::1490:81c1:9ca1:df58%9]) with mapi id 15.20.3109.027; Wed, 24 Jun 2020 02:33:25 +0000 From: "Zhiguang Liu" To: "devel@edk2.groups.io" , "oleksiyy@ami.com" CC: "Gao, Liming" , "Kinney, Michael D" , "Bi, Dandan" , "Ni, Ray" , "lersek@redhat.com" , "Kumar, Rahul1" , "Felixp@ami.com" Subject: Re: [edk2-devel] [PATCH V2 1/3] MdePkg: Add New Memory Attributes Thread-Topic: [edk2-devel] [PATCH V2 1/3] MdePkg: Add New Memory Attributes Thread-Index: AQHWSalAH1O6ANYJKUS5YtO9E7BI0qjnC9KQ Date: Wed, 24 Jun 2020 02:33:25 +0000 Message-ID: References: <20200623215556.80804-1-oleksiyy@ami.com> <20200623215556.80804-2-oleksiyy@ami.com> In-Reply-To: <20200623215556.80804-2-oleksiyy@ami.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.45] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9c83304d-9602-4fbf-cb29-08d817e6f8f0 x-ms-traffictypediagnostic: CY4PR11MB1286: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:159; x-forefront-prvs: 0444EB1997 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fPZS5LhLlv6ltdFLOyxjA9zJ1HoVf24OH3ikl0KjxirAlFAcT39waIUNUeUju21FjEOWLgbC67v2+mwjvft6Yc8QcCp1fTOVI2MWr3G9isQZIS+oLPEogabYHw6ZEEnxVUlohGz7XLzqPH0t1VA8OFaFSlPg2gSgzsTk9mnLxf9qvL0ortblNBHkHLESoRC1veAwQXHmTD1L/8oBRftdUuogl+tQw8x1MrUoD3e1V2EQCOg2BW5jYhcF4KM7IZij0LFbIRmXjrdWx43XLAI6zcrVfBRliZQiX6+btWSnClLa1J36FrCQ2UvMF2lVGmcsflvItkc9ouPK0qC1RUqMe6WN1cIyoL3yOasSefRaXqKhimT4X5SmwDI8h9bTh8i3Rhp1rHtk0kqJIQSXH/nZpA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CY4PR11MB1687.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(346002)(366004)(136003)(376002)(39860400002)(396003)(8676002)(86362001)(966005)(33656002)(53546011)(2906002)(6506007)(186003)(4326008)(26005)(7696005)(5660300002)(52536014)(66556008)(478600001)(83380400001)(55016002)(66946007)(66446008)(66476007)(76116006)(110136005)(64756008)(54906003)(316002)(71200400001)(8936002)(9686003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: mndeeLHF5yRHkGrBK9ru2mRZnWMVQi9BV59Xe3D2otXHNUIJjRTGEryH1AbAoexYFJyqWmBM7kIDtTFkYiQZ5WslPgqk2PBin0bDxwt/LgHUNVO3GTuw9kH67DKlStQ5Ib9lIVBCEMdqpnWWqfYJJJ8miJxkNyCfttxcVz5umWlOlQ2otpVF6R9fxcLwBPW9GyRYH8UDIhLswPmqRHiKx/EWQkvuDHz8OSY7GlTbW1T9tVqMU2bkn902nq2nVO5OWzUQgCcGEa8+VrRS5KEQo5Wv9fMkYibz1tJ9sd15bAibEU9+nvIYts6gtoU9Q/8VyO9nL8CPntKD51w+4bZxQevfQMOP6ORv3Rp+HrbJMWwvEtFt3ie8BuO9IPGnoq26ifBGl1eNpbwoRsFi5EHzhuWJ4Rdd9ahmk19euwUIPBNUssGPHhTm7XtQOGQsPHENbycG08Hoh40BtUm9xKrOA2xb0qDS4qwoVeQC0U2E9nWGytcD9mlWqiOupajmr5+w MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 9c83304d-9602-4fbf-cb29-08d817e6f8f0 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jun 2020 02:33:25.8342 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: JvW6Pnb8KOrnu4cMtc1a/qKh2RYJXCmnm8g+pN2YagDceBGA2szP4LusjUTiivgYn2Nl0ZK8wbMsay7xGm9N9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB1286 Return-Path: zhiguang.liu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Zhiguang Liu > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Oleksiy > Yakovlev > Sent: Wednesday, June 24, 2020 5:56 AM > To: devel@edk2.groups.io > Cc: Gao, Liming ; Kinney, Michael D > ; Bi, Dandan ; Ni, Ray > ; lersek@redhat.com; Kumar, Rahul1 > ; Felixp@ami.com; oleksiyy@ami.com > Subject: [edk2-devel] [PATCH V2 1/3] MdePkg: Add New Memory Attributes >=20 > Add usage of EFI_MEMORY_SP and EFI_MEMORY_CPU_CRYPTO > attributes introduced in UEFI 2.8. > (UEFI 2.8, mantis 1919 and 1872). > Fix typos in EFI_MEMORY_CPU_CRYPTO description. > Add attributes bitmasks, grouped by type. >=20 > Signed-off-by: Oleksiy Yakovlev > --- > MdePkg/Include/Uefi/UefiSpec.h | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) >=20 > diff --git a/MdePkg/Include/Uefi/UefiSpec.h > b/MdePkg/Include/Uefi/UefiSpec.h > index 558e1bc..05b82e0 100644 > --- a/MdePkg/Include/Uefi/UefiSpec.h > +++ b/MdePkg/Include/Uefi/UefiSpec.h > @@ -96,9 +96,9 @@ typedef enum { > #define EFI_MEMORY_SP 0x0000000000040000ULL > // > // If this flag is set, the memory region is capable of being > -// protected with the CPU?s memory cryptographic > +// protected with the CPU's memory cryptographic > // capabilities. If this flag is clear, the memory region is not > -// capable of being protected with the CPU?s memory > +// capable of being protected with the CPU's memory > // cryptographic capabilities or the CPU does not support CPU > // memory cryptographic capabilities. > // > @@ -109,6 +109,12 @@ typedef enum { > // > #define EFI_MEMORY_RUNTIME 0x8000000000000000ULL >=20 > +// > +// Attributes bitmasks, grouped by type > +// > +#define EFI_CACHE_ATTRIBUTE_MASK (EFI_MEMORY_UC | > EFI_MEMORY_WC | EFI_MEMORY_WT | EFI_MEMORY_WB | > EFI_MEMORY_UCE | EFI_MEMORY_WP) > +#define EFI_MEMORY_ATTRIBUTE_MASK (EFI_MEMORY_RP | > EFI_MEMORY_XP | EFI_MEMORY_RO | EFI_MEMORY_SP | > EFI_MEMORY_CPU_CRYPTO) > + > /// > /// Memory descriptor version number. > /// > -- > 2.9.0.windows.1 >=20 >=20 > Please consider the environment before printing this email. >=20 > The information contained in this message may be confidential and > proprietary to American Megatrends (AMI). This communication is intende= d > to be read only by the individual or entity to whom it is addressed or b= y their > designee. If the reader of this message is not the intended recipient, y= ou are > on notice that any distribution of this message, in any form, is strictl= y > prohibited. Please promptly notify the sender by reply e-mail or by > telephone at 770-246-8600, and then delete or destroy all copies of the > transmission. >=20 >=20