From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 4CE86941202 for ; Tue, 21 Nov 2023 07:53:11 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=jV/XKYZM9Fc7Fs9gEwEgUpi3InDLD44vfuHTW7H5zpo=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1700553190; v=1; b=I7lAlmlqlvnHFeA1CKkrEvJ33kce6WOcNRzFTTqA4/orV+L+gHzC+AI8p10m4H7aEt2cGWsc adyVk2bx6ojgPX1v357qEE2cjlcpTmFaatcwN8qT+LyrGj45Fth0Kqx3OkE3lsxeYFh0qRJzFE0 5XO0sidq5CNjM2K2U6ot70gg= X-Received: by 127.0.0.2 with SMTP id 7rZFYY7687511xY2nKqP9oyW; Mon, 20 Nov 2023 23:53:10 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web10.31083.1700553189050921989 for ; Mon, 20 Nov 2023 23:53:09 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="382182063" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="382182063" X-Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 23:53:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="14425634" X-Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orviesa001.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 20 Nov 2023 23:53:07 -0800 X-Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 20 Nov 2023 23:53:07 -0800 X-Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 20 Nov 2023 23:53:06 -0800 X-Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Mon, 20 Nov 2023 23:53:06 -0800 X-Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.100) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Mon, 20 Nov 2023 23:53:06 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IIJ1NZ8PR8c8ykdF9+cTZ+IwpwYuXk2DyGdKAPO7rG+f7ka7crkdmIQihEhP+SBIkHNEH6ZyJ9MfrSv0ZX2Pg8U+nvZ2yCDkaJda5jPMilcEAnW+ZrvVXEWnxx6ju3yXEn8jttb/HPhoSW91dAcT0/im56cYndfowrJdu0Dm2CBYviVUIZTo9wGBsdDEF+wOZeS5ByYAHJ9AgVjxRyzFVaaP1n1KSOlONSzJC6dffFWVRCLw34sy23a5AMC/FjGu/n39KY7Bb9EOVEdoJt8WUdSYrsZRCMRNiqNq3gMtzSk7SVIO9cFf5fCkKZtRG4QiRRUDRZ0bEkrbGsBF1o2eaQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=VNv50F05slWAn/02142k1f9i7MxScSrSgQzxrSLLblo=; b=TvZAUU70HfCsxp4GAiP3lHVnSRDxVfY+83l0avrIVX8SyptAjX8SOx59On/07L7b8jadxPWG/+ghBsI7s9lTjniEE6YeLVnD1Hr75LLuqM6tunxTw7ACHVDARH38Mgxw1zRAAqXT4iNBOAz/HmO1i48MPzXHYN0S8ynmY8MnvFCaoL8ggaLa6EBOjYwgoBRVbHnoqNLNvQiQHT8Vxg6StkeZiiht+mZ7da+m8VCztjLIdKSgMibj4Zus/h+v5R2uAausthTDxL4++/FEeAnVVX1AbTG+mT9JvJzMg7GZwTiqS2x57UHhAWCfSDOgE70PY1S953S9B6huhu6aRpo3qA== 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 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com (2603:10b6:208:470::14) by MW5PR11MB5857.namprd11.prod.outlook.com (2603:10b6:303:19d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.27; Tue, 21 Nov 2023 07:53:04 +0000 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::b614:1f5e:8b0c:9858]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::b614:1f5e:8b0c:9858%4]) with mapi id 15.20.7002.028; Tue, 21 Nov 2023 07:53:03 +0000 From: "Ni, Ray" To: "Sheng, W" , "devel@edk2.groups.io" CC: "Dong, Eric" , Laszlo Ersek , "Wu, Jiaxin" , "Tan, Dun" Subject: Re: [edk2-devel] [PATCH v6 1/6] MdePkg: Add macro definitions for CET feature for NASM files. Thread-Topic: [PATCH v6 1/6] MdePkg: Add macro definitions for CET feature for NASM files. Thread-Index: AQHaHEjGfiSTmoWKlUCNQwg2/xGmX7CEZmxw Date: Tue, 21 Nov 2023 07:53:03 +0000 Message-ID: References: <20231121070246.505-1-w.sheng@intel.com> <20231121070246.505-2-w.sheng@intel.com> In-Reply-To: <20231121070246.505-2-w.sheng@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN6PR11MB8244:EE_|MW5PR11MB5857:EE_ x-ms-office365-filtering-correlation-id: d0d11a56-d2b7-4ee5-51db-08dbea66e433 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: PhtYeaM8FLJ2kyo0hvlFp1dbBM+nUz65u/T/xTCIX7nrpIPyUxjsT7cQlAqurO0ZhGDnoeTerQhPEUGne5rJI1HpkvJ+PBvKa4KYCf1JdzYIFGB0sXZ7TblYYcM5FuT9dJ5sNcHKMcNINF1/Qi/5FBWAuyi+Wc4Z7uh0o8JV89nkazOsP8RHSgoMEl4s0w3Oq8YgeqT090aw497Ku+ZSidMUuTUUG6pFdUAIsHBaq0t7IW1GX14n60LvSUQULbt7dENhB1UWFJ4LZawCvl/Ug4U8eXe3q/bMQyx5kZkJoghLOkWVoUHcqM3/aDA/5CYZnY2+a/4DkqVwd4e4eESX/lILrz6ZQeIq/3Sx8iJ9R3be+9z5zvvmmjv9pnJzo60SU6Lehv5v6wd/KSDcwbq5H69IHs1KQAPzumUb9s7Xx1IwU90nCClgFzuGaYIVXGGPxCJWy2aEV4Sk4jvB6I8w1rLg8TK9wFq1k6QSAbdMv6UNUV1y2Y36KOWX2Veo9ak21SQmLLbU23sdBcXYh9Vq+kfQU15nEMwjxa3cXnef5mJQT1n2GbAhlgbq0UKkPotDegam5fkRLWAib+4FauEVdZqfSI3p3dXjEtnRuIWcr+dFPFiaaD60+Z4w7r6znR46q/9cJcE9fduZffIngC12CGhIW1wG0KbSgW4FjItB78U= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?OroHE4h4HEH2NjXLgJv9+qvEyyJWOH2ajCDk9CVbErfB5hXSACqXmK0Kq4nz?= =?us-ascii?Q?K1ptTiAhHyVt8R3z59KLtsau816Er0BGT5svMD1ypTO0wAnrimaMnWcRxpkR?= =?us-ascii?Q?ZIVEkQxIwITs+csfrLlIdQY+wWfLqwINl6fzbNalmNp/b6asLiF5OUSCCHzh?= =?us-ascii?Q?N46HyRqE7nZph/tfexfYntEW3AohgcZPDtZgEYBhtEl1EB82zFahFat/gPkx?= =?us-ascii?Q?3BaQtJmwVp2wvQwLBdTJG1kacVOi8f62o5vbH2s3nw95obPot3O4xgSzz7mN?= =?us-ascii?Q?cBxmezE0/pMV400VJBdqiqNS6MWoiKDjpRaHjJvXFd4p8+h4XHPlv1PxT+hl?= =?us-ascii?Q?35dChtQUDv3Rs7xvtTioFIZnCB3/MP0aff1q/49uCJWMCrmEkMay6kgNfN1e?= =?us-ascii?Q?wTsOOQDP0ODabsm0aHBC5GDmxJ63BGhgOFegYhYldounGvZCAcPyHEPX3i2U?= =?us-ascii?Q?6XNMe/xzgZW9nzziNIrKlyJOEeZYSa54qUcVj93OBlj4xQEewWL9LZgfdzrY?= =?us-ascii?Q?q0S1yNI9wVeHwhtYnr9Mr4V4BAy5hlpWdTlxViX0ZITh5rd2u4Z/vySLfd4z?= =?us-ascii?Q?Oh+oXb12S1owzFqy/mdQcUtA40/JsvHzA75zOQaTa/VBmsd4eMEM+UjKxn80?= =?us-ascii?Q?ZDr+FJePmMCdiPbARZ47q+H+DShIwqO4Am2/Lcgu7BvKxD2r4iQ51fDaY552?= =?us-ascii?Q?zgwVOmQOoy+CRQLFKbT4JQYsYeGg338bTiZazSGJF7IoGoxNvVPO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AuthSource: MN6PR11MB8244.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0d11a56-d2b7-4ee5-51db-08dbea66e433 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2023 07:53:03.8853 (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: EFuAuuov5L1YUtkijrMBvzupvmjoBUq/Y1nbFETBKsIACj3sNMWspqJHXVPa5an/TpodzeueeGtMLHDXI8pnlQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR11MB5857 X-OriginatorOrg: intel.com Precedence: Bulk 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,ray.ni@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: HwcBdqCerXFs6LDqgWIkAFjPx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=I7lAlmlq; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io You might need to drop Reviewed-by from Laszlo as the patch content is so d= ifferent than the reviewed version. Reviewed-by: Ray Ni Thanks, Ray > -----Original Message----- > From: Sheng, W > Sent: Tuesday, November 21, 2023 3:03 PM > To: devel@edk2.groups.io > Cc: Dong, Eric ; Ni, Ray ; Laszlo > Ersek ; Wu, Jiaxin ; Tan, Dun > > Subject: [PATCH v6 1/6] MdePkg: Add macro definitions for CET feature for > NASM files. >=20 > Signed-off-by: Sheng Wei > Cc: Eric Dong > Cc: Ray Ni > Cc: Laszlo Ersek > Cc: Wu Jiaxin > Cc: Tan Dun > Reviewed-by: Laszlo Ersek > --- > MdePkg/Include/Ia32/Cet.inc | 26 ++++++++++++++++++++++++++ > MdePkg/Include/X64/Cet.inc | 26 ++++++++++++++++++++++++++ > 2 files changed, 52 insertions(+) > create mode 100644 MdePkg/Include/Ia32/Cet.inc > create mode 100644 MdePkg/Include/X64/Cet.inc >=20 > diff --git a/MdePkg/Include/Ia32/Cet.inc b/MdePkg/Include/Ia32/Cet.inc > new file mode 100644 > index 0000000000..41c99988c9 > --- /dev/null > +++ b/MdePkg/Include/Ia32/Cet.inc > @@ -0,0 +1,26 @@ > +;-----------------------------------------------------------------------= ------- >=20 > +; >=20 > +; Copyright (c) 2023, Intel Corporation. All rights reserved.
>=20 > +; SPDX-License-Identifier: BSD-2-Clause-Patent >=20 > +; >=20 > +; Abstract: >=20 > +; >=20 > +; This file provides macro definitions for CET feature for NASM files. >=20 > +; >=20 > +;-----------------------------------------------------------------------= ------- >=20 > + >=20 > +%define MSR_IA32_U_CET 0x6A0 >=20 > +%define MSR_IA32_S_CET 0x6A2 >=20 > +%define MSR_IA32_CET_SH_STK_EN (1<<0) >=20 > +%define MSR_IA32_CET_WR_SHSTK_EN (1<<1) >=20 > +%define MSR_IA32_CET_ENDBR_EN (1<<2) >=20 > +%define MSR_IA32_CET_LEG_IW_EN (1<<3) >=20 > +%define MSR_IA32_CET_NO_TRACK_EN (1<<4) >=20 > +%define MSR_IA32_CET_SUPPRESS_DIS (1<<5) >=20 > +%define MSR_IA32_CET_SUPPRESS (1<<10) >=20 > +%define MSR_IA32_CET_TRACKER (1<<11) >=20 > +%define MSR_IA32_PL0_SSP 0x6A4 >=20 > +%define MSR_IA32_INTERRUPT_SSP_TABLE_ADDR 0x6A8 >=20 > + >=20 > +%define CR4_CET_BIT 23 >=20 > +%define CR4_CET (1<=20 > diff --git a/MdePkg/Include/X64/Cet.inc b/MdePkg/Include/X64/Cet.inc > new file mode 100644 > index 0000000000..41c99988c9 > --- /dev/null > +++ b/MdePkg/Include/X64/Cet.inc > @@ -0,0 +1,26 @@ > +;-----------------------------------------------------------------------= ------- >=20 > +; >=20 > +; Copyright (c) 2023, Intel Corporation. All rights reserved.
>=20 > +; SPDX-License-Identifier: BSD-2-Clause-Patent >=20 > +; >=20 > +; Abstract: >=20 > +; >=20 > +; This file provides macro definitions for CET feature for NASM files. >=20 > +; >=20 > +;-----------------------------------------------------------------------= ------- >=20 > + >=20 > +%define MSR_IA32_U_CET 0x6A0 >=20 > +%define MSR_IA32_S_CET 0x6A2 >=20 > +%define MSR_IA32_CET_SH_STK_EN (1<<0) >=20 > +%define MSR_IA32_CET_WR_SHSTK_EN (1<<1) >=20 > +%define MSR_IA32_CET_ENDBR_EN (1<<2) >=20 > +%define MSR_IA32_CET_LEG_IW_EN (1<<3) >=20 > +%define MSR_IA32_CET_NO_TRACK_EN (1<<4) >=20 > +%define MSR_IA32_CET_SUPPRESS_DIS (1<<5) >=20 > +%define MSR_IA32_CET_SUPPRESS (1<<10) >=20 > +%define MSR_IA32_CET_TRACKER (1<<11) >=20 > +%define MSR_IA32_PL0_SSP 0x6A4 >=20 > +%define MSR_IA32_INTERRUPT_SSP_TABLE_ADDR 0x6A8 >=20 > + >=20 > +%define CR4_CET_BIT 23 >=20 > +%define CR4_CET (1<=20 > -- > 2.26.2.windows.1 -=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 (#111525): https://edk2.groups.io/g/devel/message/111525 Mute This Topic: https://groups.io/mt/102724272/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/leave/12367111/7686176/19134562= 12/xyzzy [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-