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 C7443941675 for ; Wed, 15 Nov 2023 10:38:08 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=mvuzJycs5lOhN4b5+6oAdCADotIfMCRMnho+obvIC9A=; c=relaxed/simple; d=groups.io; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:In-Reply-To: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=1700044687; v=1; b=snmvXHbLWgoet1cFnnLd1Qs5sEX8gffbEV3Z2nXhgEIVM0n9efgEF9F7a4v3VRKjauQ/wPhz 38lJI6hMALtrE5sPMWrSK1O+J156WA7aNquVzYKpELPtdmvH0YwI2apusXqJWuD4InieNkFH0FB 1oTkhbsX/JfICChHJsheHM6w= X-Received: by 127.0.0.2 with SMTP id FhGWYY7687511x6FPjcsGdFd; Wed, 15 Nov 2023 02:38:07 -0800 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.groups.io with SMTP id smtpd.web11.10304.1700044686905634709 for ; Wed, 15 Nov 2023 02:38:07 -0800 X-Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-594-yFMvI1qnPiiMSlhtm4PHaA-1; Wed, 15 Nov 2023 05:38:04 -0500 X-MC-Unique: yFMvI1qnPiiMSlhtm4PHaA-1 X-Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 59808185A781; Wed, 15 Nov 2023 10:38:04 +0000 (UTC) X-Received: from [10.39.192.211] (unknown [10.39.192.211]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 595F31C060AE; Wed, 15 Nov 2023 10:38:03 +0000 (UTC) Message-ID: <71fae02e-ea32-af90-d254-a3ead1dc518d@redhat.com> Date: Wed, 15 Nov 2023 11:38:02 +0100 MIME-Version: 1.0 Subject: Re: [edk2-devel] [PATCH v5 1/6] MdePkg: Add macro definitions for CET feature for NASM files. To: devel@edk2.groups.io, w.sheng@intel.com Cc: Eric Dong , Ray Ni , Wu Jiaxin , Tan Dun References: <20231115041216.2016-1-w.sheng@intel.com> <20231115041216.2016-2-w.sheng@intel.com> From: "Laszlo Ersek" In-Reply-To: <20231115041216.2016-2-w.sheng@intel.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.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,lersek@redhat.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: ZNX7vs96vLiUm9f6IJGHWDJex7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8 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=snmvXHbL; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=redhat.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 On 11/15/23 05:12, Sheng Wei wrote: > 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/Cet.inc | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > create mode 100644 MdePkg/Include/Cet.inc >=20 > diff --git a/MdePkg/Include/Cet.inc b/MdePkg/Include/Cet.inc > new file mode 100644 > index 0000000000..a4038a0682 > --- /dev/null > +++ b/MdePkg/Include/Cet.inc > @@ -0,0 +1,26 @@ > +;-----------------------------------------------------------------------= ------- > +; > +; Copyright (c) 2023, Intel Corporation. All rights reserved.
> +; SPDX-License-Identifier: BSD-2-Clause-Patent > +; > +; Abstract: > +; > +; This file provides macro definitions for CET feature for NASM files. > +; > +;-----------------------------------------------------------------------= ------- > + > +%define MSR_IA32_U_CET 0x6A0 > +%define MSR_IA32_S_CET 0x6A2 > +%define MSR_IA32_CET_SH_STK_EN 0x1 > +%define MSR_IA32_CET_WR_SHSTK_EN 0x2 > +%define MSR_IA32_CET_ENDBR_EN 0x4 > +%define MSR_IA32_CET_LEG_IW_EN 0x8 > +%define MSR_IA32_CET_NO_TRACK_EN 0x10 > +%define MSR_IA32_CET_SUPPRESS_DIS 0x20 > +%define MSR_IA32_CET_SUPPRESS 0x400 > +%define MSR_IA32_CET_TRACKER 0x800 > +%define MSR_IA32_PL0_SSP 0x6A4 > +%define MSR_IA32_INTERRUPT_SSP_TABLE_ADDR 0x6A8 > + > +%define CR4_CET_BIT 23 > +%define CR4_CET 0x800000 Works for me; it also solves the question of "where exactly put this under UefiCpuPkg" -- well, put it under MdePkg. :) Laszlo -=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 (#111252): https://edk2.groups.io/g/devel/message/111252 Mute This Topic: https://groups.io/mt/102599349/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-