From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web11.67555.1680012615592442638 for ; Tue, 28 Mar 2023 07:10:16 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=NkBaN9lN; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: ray.ni@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680012615; x=1711548615; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=ur/BuP2BZmrhHXcv6/AfrUu4dZtG6hg9dTa+tF+++Zo=; b=NkBaN9lN1eoM2s5944377zzTcaNCW6vg6eQ8jFtRMN3MGJY1z9DI2yq9 ItpQkdUApxjxb11Rsvhe0RvuAEygYXyPbOSQQ13RoPVJ12pYry8IpMcOD mV1uVFJpRQs7VN/eKhK8e2e+zBigKhoSQVJJCdo0zKTAxqZsH/eJuvhK4 5Ayu7h264437yYZpVhoaJaRJZnR1wksMjafFj7axycHEtTJh/+XlijSEL Jq2cU3HzDvgEsdGhITxjPC+QIM+FOwvLQhZEBWoQBdtZbyKL7uvbTwHNj GgNr3+o5rXbF4Ff49jjV79UxZXCuuWWaO9gpz4KXU8ZiWxvPFvJdX3Jx2 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="324468057" X-IronPort-AV: E=Sophos;i="5.98,297,1673942400"; d="scan'208,217";a="324468057" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 07:10:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="716494874" X-IronPort-AV: E=Sophos;i="5.98,297,1673942400"; d="scan'208,217";a="716494874" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga001.jf.intel.com with ESMTP; 28 Mar 2023 07:10:10 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 28 Mar 2023 07:10:10 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 28 Mar 2023 07:10:10 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) 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.21 via Frontend Transport; Tue, 28 Mar 2023 07:10:10 -0700 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.45) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.21; Tue, 28 Mar 2023 07:10:09 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=apLK4S8bJF7Q1Zwog78SrAGdQzHKdN2KIkCKTz9bB7HKA0JHsuWA/CkgFX2MwpSovjyZ/FmTzZgzNGa+E/+GxfxcK1W6pgygA1y1fgFIDbogO2MCfcqk0Q3eoV0NDGsmXfAFOL5+JhuAuqQr5pfyOHvXxuIOpvV/TSVEaAvWpwhaAhqX/jxCPAY+U529qmOphFfZ7+P/JElI1NNny+D0nCx+/VXaCF2Ac4zBh89Ol57b423kLjux52fJF7LuBq2XG/mNAeWRuQnhNy8y42RERIxRM5VNZNv372MRJaSizaU2CYdwfCxJqPng4WfClbxvGe9AUeXLMSELGruw6pERvg== 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=yzBgySYtg2gthW/hJuUPJIQXr3HKTggw/Td4XdTpA+8=; b=TbBPEqTUhQNV6SSGCA/yUMAle6fa5WEoLAXmbHA1yDlySX5CWZ6riKjBlPPuzubQmsYihN/O/d/rkvDDopOOqwUTKA0p7/lWm3M6THRQggBznogZA+hY1ElXsGis0irh7v3ArRrVEO0Ukyk90O/oG/PXdCkzaucmwBGKDoP/oGvkfQMIgNd9mXUyfq8L/4Da6RG0HKJEZZb3/Ndp1h7U7b0LBqaq+VBiL0zp++tIN+Gnoj7rlk4bLDe1+N2BfLFRxebBnMD7wyDhp9GAa34m4awN8v124GAEBjU8AGXC80gXKL0tk11t0vHJeoBa0u8Dvphs0//KHxeWJx022G4SRw== 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 Received: from MN6PR11MB8244.namprd11.prod.outlook.com (2603:10b6:208:470::14) by MW3PR11MB4617.namprd11.prod.outlook.com (2603:10b6:303:59::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.28; Tue, 28 Mar 2023 14:10:07 +0000 Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::ae07:e96a:4a24:8a69]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::ae07:e96a:4a24:8a69%7]) with mapi id 15.20.6178.041; Tue, 28 Mar 2023 14:10:07 +0000 From: "Ni, Ray" To: "devel@edk2.groups.io" CC: 'Gerd Hoffmann' , Tom Lendacky Subject: Re: [edk2-devel] [PATCH 0/6] Substract TME-MK KEY_ID_BITS from CPU max PA Thread-Topic: [edk2-devel] [PATCH 0/6] Substract TME-MK KEY_ID_BITS from CPU max PA Thread-Index: AQHZXFDgJtZZxfQaVEqr06ue07EIf68QRGOO Date: Tue, 28 Mar 2023 14:10:07 +0000 Message-ID: References: <174E9488256AAAA5.22739@groups.io> In-Reply-To: <174E9488256AAAA5.22739@groups.io> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN6PR11MB8244:EE_|MW3PR11MB4617:EE_ x-ms-office365-filtering-correlation-id: d584eb10-e122-44d4-9d19-08db2f962283 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6Le1lb2tAuoAC71t/NTAmeH934rUaGq7Ka3lX0mNYhavcW4QwDjSpa6ZJ2b7El51zSKOcx94dDf/OJ1YXX6e5TTL8meXt9Bmy5N/ojGM5bNyZEqmQ5Q24wrM32Hwcr4v4TCVjwXPEBhvsLeV2Ub9mQwHkTJsYT7xj/SaZ6LNuFFHrjXS6falEDmdwSMUP0XiuuuUuY3MxsaJvvzDiTHWsbArwJo7LLZ5knpgMLbCStl2EKj+MhzaaDHywX9xVScNnzPpEUGl+aqOf9SMDqHbnAnokXdkTIqnE4LgWa795ALSAG33sbabqZTU7L+hntTusEbtkoz25IBC0ugwgd3IIRfwThjCsTSDQHR+RensZ82cG7ztSv1qRue3avP1TCRiT0OQ57naccLSf33Hx+AqXzpheMxep6qpW0jRHwLxN9idbu96uMikNd7PGRbFXNe7VWJC/t+S/q1kqOoyEMa1fq1WdHNHBN0VKZldGhyYP91BNzFvIJGBP/xb8xwcji4B2Ik1GEe8IUz+MxX9i7lBJ9CF329UJjJewoppWRVVrbMi1OYd63woRHFGBOLp73XJdUGKmEE35a1yd5IDoRnzK2BWG0hCzCl28c+H81IXQDrTnPwzBQGXwOpjSH6C2pMgozIEEX3S5mEfci1EpML6Ng== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN6PR11MB8244.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(39860400002)(346002)(396003)(366004)(136003)(376002)(451199021)(66899021)(8936002)(166002)(91956017)(83380400001)(41300700001)(52536014)(86362001)(38100700002)(5660300002)(33656002)(122000001)(66446008)(82960400001)(966005)(478600001)(71200400001)(7696005)(76116006)(54906003)(66946007)(66556008)(64756008)(2906002)(8676002)(6916009)(66476007)(4326008)(55016003)(6506007)(186003)(53546011)(316002)(9686003)(38070700005)(26005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?PlQOQWiPEaxiojRF9u6de5lIyS9xyrRDeTFz5/6HZSdJmVbTkTgi/ILh74y+?= =?us-ascii?Q?PCJPx8GbnWlRr1EUpCjdXlv8GdhqtdA9wIhLpV+zkjWZbyKisKzvkpdHX15p?= =?us-ascii?Q?MrZlDge/WIHT93WmN9Xbe7QfF4fT7DzcqMObzxjyh/A/IKDmo0mhA63du/bJ?= =?us-ascii?Q?qtWBiAfCdIYV61Ta/VVA3uOIBzy8fqtcEvCWeAXk/CCQpDuYC/gXMR7RV4st?= =?us-ascii?Q?hkjH09DzVmE/ld9YrxEwHEeEHaNKBbxsa+AaKbJXfhTCkdWDt4/EqFrWc2zn?= =?us-ascii?Q?I9eE5aEmcbu0/wSSOeGFQhX70e7jzpoUQ+nNCttA9lZ7j045Hg3bxzeQLjXp?= =?us-ascii?Q?i0mCvCNz3O0nheNAIrPGrmy3w3nu/MSZsnrVZQ0eiZATICA0u4d9iSuPjeGr?= =?us-ascii?Q?o+4aUwsPL7bqnrupby8zbsBsncbxbR1QL0kQn8gH5/ADJlMh6nSEzHfnJnLc?= =?us-ascii?Q?pZoOkRxxwSmbOP7zBCTUHGghJ2h+QQP1/084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KXxo4Bka+065TdP3Tncs9+LG+kzjqvi/PEeTParTvdAz8QQ2?= =?us-ascii?Q?x7gJZKowGPxLic9ZU4yLQxSzmKPFHePDMQtExIqhdgDq2dBb970b6zUxjq0x?= =?us-ascii?Q?GbIesyEflKe6HFP9+u1T3r+CwQP9AICbGBOy4p7usdppkWMtMCC1YawtFV0y?= =?us-ascii?Q?YjTEJQ3zMgl6/OZgSIy4FqCo0CebyQOhWvT+g1wA?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN6PR11MB8244.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d584eb10-e122-44d4-9d19-08db2f962283 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Mar 2023 14:10:07.3551 (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: 1ugYW2AxKQQ7fcUOpJ2j96qSFShsDeLiTfxjHR5ds1nhSjkK7bORIAIlJM/8NDRtESzvEzNf+W/f7JvQk+9+mg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4617 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MN6PR11MB8244FF107020CFDAE384F4518C889MN6PR11MB8244namp_" --_000_MN6PR11MB8244FF107020CFDAE384F4518C889MN6PR11MB8244namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Gerd, Tom, Can you please review this patch series? thanks, ray ________________________________ From: devel@edk2.groups.io on behalf of Ni, Ray Sent: Wednesday, March 22, 2023 7:56:44 AM To: devel@edk2.groups.io Subject: [edk2-devel] [PATCH 0/6] Substract TME-MK KEY_ID_BITS from CPU max= PA Ray Ni (6): MdePkg: Add TME-MK related CPUID and MSR definitions UefiCpuPkg/MtrrTest: Only claim CPUID max leaf as 1 UefiCpuPkg/MtrrLib: Substract TME-MK KEY_ID_BITS from CPU max PA UefiCpuPkg/CpuDxe: Refactor to use CPUID definitions UefiCpuPkg/CpuDxe: Substract TME-MK KEY_ID_BITS from CPU max PA UefiCpuPkg/MtrrTest: Add test cases for TME-MK enable case .../Include/Register/Intel/ArchitecturalMsr.h | 106 ++++++++++++++- MdePkg/Include/Register/Intel/Cpuid.h | 9 +- UefiCpuPkg/CpuDxe/CpuDxe.c | 38 ++++-- UefiCpuPkg/CpuDxe/CpuDxe.h | 3 +- UefiCpuPkg/Library/MtrrLib/MtrrLib.c | 24 +++- .../MtrrLib/UnitTest/MtrrLibUnitTest.c | 18 +-- .../MtrrLib/UnitTest/MtrrLibUnitTest.h | 3 +- UefiCpuPkg/Library/MtrrLib/UnitTest/Support.c | 126 ++++++++++++++---- 8 files changed, 278 insertions(+), 49 deletions(-) -- 2.39.1.windows.1 --_000_MN6PR11MB8244FF107020CFDAE384F4518C889MN6PR11MB8244namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Gerd, Tom,
Can you please review this patch series?

thanks,
ray

From: devel@edk2.groups.io = <devel@edk2.groups.io> on behalf of Ni, Ray <ray.ni@intel.com><= br> Sent: Wednesday, March 22, 2023 7:56:44 AM
To: devel@edk2.groups.io <devel@edk2.groups.io>
Subject: [edk2-devel] [PATCH 0/6] Substract TME-MK KEY_ID_BITS from = CPU max PA
 

Ray Ni (6):
  MdePkg: Add TME-MK related CPUID and MSR definitions
  UefiCpuPkg/MtrrTest: Only claim CPUID max leaf as 1
  UefiCpuPkg/MtrrLib: Substract TME-MK KEY_ID_BITS from CPU max PA
  UefiCpuPkg/CpuDxe: Refactor to use CPUID definitions
  UefiCpuPkg/CpuDxe: Substract TME-MK KEY_ID_BITS from CPU max PA
  UefiCpuPkg/MtrrTest: Add test cases for TME-MK enable case

 .../Include/Register/Intel/ArchitecturalMsr.h | 106 ++++++++++++++-  MdePkg/Include/Register/Intel/Cpuid.h     &n= bsp;   |   9 +-
 UefiCpuPkg/CpuDxe/CpuDxe.c       &= nbsp;            |&n= bsp; 38 ++++--
 UefiCpuPkg/CpuDxe/CpuDxe.h       &= nbsp;            |&n= bsp;  3 +-
 UefiCpuPkg/Library/MtrrLib/MtrrLib.c     &nb= sp;    |  24 +++-
 .../MtrrLib/UnitTest/MtrrLibUnitTest.c     &= nbsp;  |  18 +--
 .../MtrrLib/UnitTest/MtrrLibUnitTest.h     &= nbsp;  |   3 +-
 UefiCpuPkg/Library/MtrrLib/UnitTest/Support.c | 126 ++++++++++++++---= -
 8 files changed, 278 insertions(+), 49 deletions(-)

--
2.39.1.windows.1






--_000_MN6PR11MB8244FF107020CFDAE384F4518C889MN6PR11MB8244namp_--