From nobody Tue Nov 26 02:05:35 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+61621+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+61621+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1592949417; cv=none; d=zohomail.com; s=zohoarc; b=UxtZ0wsrtw9DolonOnYKxS+WbJM622nd3WYjz3XoBcVXHO+YGjoc9eZrM6GH1y4UpKXkHMD/IfI7PNJKuqN7LKNQqqCw80Vcuseqi83iHMu2anGNwky3DYrsmmhOZKORDmKmpBV6BZ/1O30w5EVl0OUPVhGE6NCQjKQqNzU9sP4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1592949417; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=FP6MTMK1q/I1v10XcLouhDgKE5bjJF3FbRSMJQUob3s=; b=KUSfh/Dzxhj3+N0NWIzrm2OgxhfqDa4sPOkqI50pdJQJ3e5ec83h4xx3WFM1o1vDFh6ee+1Ho/bt3wXhlHIoFQL05ljmIE+LrW0djfdZOMx1m+Fja50XQHRs0gWRawUyURZAt3dGoYPtECNrKwOejW5wceojBtyHDqm1dmdA1ms= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+61621+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1592949417540901.5449419700125; Tue, 23 Jun 2020 14:56:57 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id oPeZYY1788612xFo4CiZZsNL; Tue, 23 Jun 2020 14:56:57 -0700 X-Received: from atlmailgw1.ami.com (atlmailgw1.ami.com [63.147.10.40]) by mx.groups.io with SMTP id smtpd.web11.544.1592949415158553916 for ; Tue, 23 Jun 2020 14:56:55 -0700 X-AuditID: ac1060b2-ebbff70000003d78-97-5ef27aa5bc55 X-Received: from atlms1.us.megatrends.com (atlms1.us.megatrends.com [172.16.96.144]) (using TLS with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by atlmailgw1.ami.com (Symantec Messaging Gateway) with SMTP id 83.46.15736.5AA72FE5; Tue, 23 Jun 2020 17:56:53 -0400 (EDT) X-Received: from Oleksiy77.us.megatrends.com (172.16.97.158) by atlms1.us.megatrends.com (172.16.96.144) with Microsoft SMTP Server id 14.3.468.0; Tue, 23 Jun 2020 17:55:59 -0400 From: "Oleksiy Yakovlev" To: CC: , , , , , , , Subject: [edk2-devel] [PATCH V2 1/3] MdePkg: Add New Memory Attributes Date: Tue, 23 Jun 2020 17:55:54 -0400 Message-ID: <20200623215556.80804-2-oleksiyy@ami.com> In-Reply-To: <20200623215556.80804-1-oleksiyy@ami.com> References: <20200623215556.80804-1-oleksiyy@ami.com> MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrGIsWRmVeSWpSXmKPExsWyRiBhgu7Sqk9xBtOuGFls3aZu0T5hNpvF smM7WCxW3NvAbtHR8Y/JYvp2F4svq98zOrB7bP9+gdFj8Z6XTB7v911lC2COamC0SczLyy9J LElVSEktTrZVCijKLEtMrlRSyEyxVTJUUijISUxOzU3NK7FVSiwoSM1LUbLjUsAANkBlmXkK qXnJ+SmZeem2Sp7B/roWFqaWuoZKdiEZqQqZeWn5RbmJJZn5eQrJ+XklQNWpKUBRhYRuzoy2 Q5fZCg7zVDxZN4GxgXEdVxcjB4eEgInErftBXYxcHEICu5gknnzoYYdwtjBKfPy5kamLkZOD TUBT4sCxKYwgtoiAlMSUAzOZQIqYBfYwSvS8PsUKkhAWsJQ4/vEeWBGLgKrEklevwJp5BUwl lnWsAotLCGhITFtzlwlkM6eAmcTzlwEgYSGgkvbV96DKBSVOznzCAmIzC0hIHHzxghmiRlai 7fhz9gmM/LOQlM1CUraAkWkVo1BiSU5uYmZOermhXmJupl5yfu4mRkgkbtrB2HLR/BAjEwfj IUYJDmYlEd4Qt09xQrwpiZVVqUX58UWlOanFhxidgO6fyCzFDQpAYIzEGxsYSInCOIYmZibm RuaGlibmxsZK4ryT166JExJIB8ZsdmpqQWoRzBAmDk6pBsZ7W/jX+X1wnr1YmveXd/WdI8Xr tz4o7dR6aqKaUBL3ZvYdvs+HXFTWLD9mlazc4bo2QrK+dv5K965TzsVF/fzuSwqUDeymdi1f GNqi+i6g3mpi+7PzHOc+sVhEdquvTfriuUXsvInXrFfvD/eFaM0sEXj2LOjKS4ZXjKbOcrKr my6H1P76q6bEUpyRaKjFXFScCADy61z42QIAAA== Precedence: Bulk List-Unsubscribe: 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,oleksiyy@ami.com X-Gm-Message-State: Nj1wVNWLmFHYY9xkzdO8ZfMxx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1592949417; bh=7cyv6eJbHK7/xcDUA0RGiXbnRsHwWOY6fA6kBCORudA=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=IhMl9SdoAs/exu0xWlLzLEVQY+ME+cT/75H1YsWdxpKTqMt70JSIxdabfJNEltU2zPt uRJaVCMd03gOk74HFSB8zgZQXQZx3K/i9odkgFAOLI9Ag9QCumyO4bvY6oDTfcc9x+mC3 fOwad0UQ2j99WsrxuobhLto5rJ3P3ic336o= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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. Signed-off-by: Oleksiy Yakovlev Reviewed-by: Laszlo Ersek Reviewed-by: Liming Gao Reviewed-by: Zhiguang Liu --- MdePkg/Include/Uefi/UefiSpec.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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_MEMO= RY_WT | EFI_MEMORY_WB | EFI_MEMORY_UCE | EFI_MEMORY_WP) +#define EFI_MEMORY_ATTRIBUTE_MASK (EFI_MEMORY_RP | EFI_MEMORY_XP | EFI_MEM= ORY_RO | EFI_MEMORY_SP | EFI_MEMORY_CPU_CRYPTO) + /// /// Memory descriptor version number. /// --=20 2.9.0.windows.1 Please consider the environment before printing this email. The information contained in this message may be confidential and proprieta= ry to American Megatrends (AMI). This communication is intended to be read= only by the individual or entity to whom it is addressed or by their desig= nee. If the reader of this message is not the intended recipient, you are o= n notice that any distribution of this message, in any form, is strictly pr= ohibited. Please promptly notify the sender by reply e-mail or by telephon= e at 770-246-8600, and then delete or destroy all copies of the transmissio= n. -=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 (#61621): https://edk2.groups.io/g/devel/message/61621 Mute This Topic: https://groups.io/mt/75070221/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-