From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.67617.1680012784244817628 for ; Tue, 28 Mar 2023 07:13:04 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=abIogNdY; spf=pass (domain: intel.com, ip: 192.55.52.43, 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=1680012784; x=1711548784; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=4j6pchukR5oL4c/BQZ32KvPVnXFfHasYARhLCky3hhc=; b=abIogNdYBoXCqA9gLYzsf3Hz4pdv5nmdbmP+mDjf1OjkA6HvV2ygBU9Q Y3XPcVqbhO1rIg8hInmmYeo9/hA045sRtYX2KXtQlVALtqq6qjwFHqBSB XZ+mIYuWtYH+40Pnc+1vbisbEg9DOON1yTwmNVD//dRfbyOyxp9fFrO28 oQFYCifXkwpHZMbLpgKkt1QDYCSZ56ybR6oUancDTKwKG/hTtGriqTZge KKGBx/5oVuw9jTkAxOERmpDq1+guKnSMiC9CbYAwvewq/CkbJrmfvVPOT 663A6umozxexkkRnrJmLr0pgdLVXgvcv8yWEy5ScKrdeyKmCJuBOhrbG3 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="426840577" X-IronPort-AV: E=Sophos;i="5.98,297,1673942400"; d="scan'208,217";a="426840577" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2023 07:13:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10662"; a="661187183" X-IronPort-AV: E=Sophos;i="5.98,297,1673942400"; d="scan'208,217";a="661187183" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga006.jf.intel.com with ESMTP; 28 Mar 2023 07:13:03 -0700 Received: from orsmsx603.amr.corp.intel.com (10.22.229.16) 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.21; Tue, 28 Mar 2023 07:13:02 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) 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.21 via Frontend Transport; Tue, 28 Mar 2023 07:13:02 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.170) by edgegateway.intel.com (134.134.137.103) 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:13:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Qdx2wqb5JlierITwmoqTvNxkVIJOVBAb/zG8nWRIWfaSOKHPRm7/QUrrg48VH7krJUCpJFUestxoi/NJl4+oXpFcUXeX84p+rQ2VP4Fmoj4m1N1l9geaDd+c4sbqkR1WMyxgA0e/9tnVJ6sGvrIsuXIYBtt0UIy3VXNLNsCUGfEg7wHu1aaHiH9u+fmB6Z0j+lf5NTYOhzZj541HLTldlNA71YwI5KFtbNNxwene5fm/rPYsUNGdIr8KPZ6o27WcSuDdZ1GgFogdtEgYEkV1yF5nW0QPLAmE1BRUqledVFDtohVFNA0JKT7v9O/+eQozNjAk7/dQ7pYnr3mz/P/VtQ== 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=YoA0YBS0GCKFXwOoZxXhS+iFXwdN3KA80tJlpkO+t0c=; b=DWLUBJhGsW1k+GNlCeTk4RKE86Tnp+WLryljPDZ8nsRc10SmX/sEpIqBHElDFXUvLL61Uu8TjUZsAICAcP9LgsHBMKy/9mkvCtzpkvVfjK6gPsdo9iojn+mSv8+4dXeZDfh933a0T9M/xXzyqv7a424i2qMwMx9mOK9Nuxk6nw2gpWT2e22U3LRJs60GT6fBMd2u4/ljV2jm41qxnMKP+Xy1ZSfiDTF6fFm5kD0qU6Y2A3cRdbtaFI9bJY2l1fEZUtIaos95jgFsF8QCtXdBNP/VwV+0ZO+NRDEuFQCFN+Px+0HF+V0GoALlE9FXXSvygrWILaV3Go2/bjVCJxjEZQ== 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 CY8PR11MB7798.namprd11.prod.outlook.com (2603:10b6:930:77::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.41; Tue, 28 Mar 2023 14:13:01 +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:13:01 +0000 From: "Ni, Ray" To: "devel@edk2.groups.io" CC: "Kinney, Michael D" , "Dong, Eric" 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: AQHZXFDgJtZZxfQaVEqr06ue07EIf68QRgCD Date: Tue, 28 Mar 2023 14:13:01 +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_|CY8PR11MB7798:EE_ x-ms-office365-filtering-correlation-id: 1bdf9aef-b2f8-4ab4-1959-08db2f968a31 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: aQZZwAKYsbcAtwDPDWhxcLzlq4uaBth/H4NPkbvKtDVrKa1fKYwEidv+7ayWVCpMCKNd97wi2JsAYhuJeCC5sSGAaYQ2yY3tPaQZOkgg1iNNmYeSop1m4luLdyvirXqggbgrMt99K0a5L5y/pRw8f4FOYfp3NihHJ5dBTHn6umhoQ2CBQAQOo9BhoJb1SxyK9U8splrnqZe3JwXTSpwqcucxyK78JlIG5tgDrJsg8bO1JccibMC4S4C8/zQ0Dc7ZNLynfLlnUzMn++O3Nj9FcU+0u9Xv9w04WvNh3T6yFYoHU4tw6wnmmP8L4IzIomQNFd+1HkWjxJ5DRaB1lngv3UePOx/Ai+sBVuh/7oq0JE+WA51RaCd4FZxBk9qx2GYAfz345y5oYMM78ZEuaCOVVuPT/EnsviHSlCjwQAEGsTBRNQNs5iBXmqmR3HOTTpmpB35Kpojzrbp8Nt/dfXX5fw58Gg+HzLZAjHj5T+o3v2O8qPVlkAu5u2ZsLKnrrsIwCrf+ILKxFnYhVGn8tTInoPYHw3bxgb2Od00wUWXMDRMNa1vs3ZwvzDmzisBu+OoWPJb2U3LthSl0AEEvJsZZNCzDwLFmXehWp1TOmNOSVNvJxVHba/IsaF607KcUS3wN05mvMD52t6kZMGYxrQo3kw== 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)(136003)(396003)(346002)(39860400002)(366004)(376002)(451199021)(66476007)(66946007)(8676002)(64756008)(76116006)(6916009)(66446008)(66556008)(91956017)(41300700001)(186003)(2906002)(5660300002)(83380400001)(38100700002)(38070700005)(166002)(86362001)(122000001)(55016003)(82960400001)(33656002)(4326008)(52536014)(478600001)(107886003)(54906003)(966005)(71200400001)(7696005)(8936002)(26005)(53546011)(6506007)(9686003)(66899021)(316002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?FQHTHZz8f1nxoHceXuk2Zkqq+hTYS9NpNPIUXajrVGY8SGoFjfJymA2Dm0So?= =?us-ascii?Q?yPBCOjRdWWbmfSXdGupCMc7cwntrpuwtjVO4+tLC8nbwWd2mZJ5TnutcxXmt?= =?us-ascii?Q?AleM9UzGYHHzuO6WdSxaZ32YGUYjFeW/mlMJY+ig/YrUNebzhJmQZVpVAAJS?= =?us-ascii?Q?bKvgQcD43t+oOMPy3SsNr4DwWbbadfBhZT5VRxy5OMWFnbHz+/NtY6Mh3XpR?= =?us-ascii?Q?5zonxr4J/WESIIaDi5nF8A2Lj6PYfPtC95igonCVroLKfNBlLDlNcJoFqMHP?= =?us-ascii?Q?GzLAu6LzeJx9gm01McQLWK9kHXAUa8enhnCUm6HWW9BCY8Wztgl2aKIXpa4t?= =?us-ascii?Q?XJ5drPNKmD55VMIZlOlK+SQBhpb69nyYgfE8FUFt2cxBo03Bgj6SdxWwxcrL?= =?us-ascii?Q?VuLDP9XrIosYCpU4rJpn0x5YVhadZrtwHROJLg3E1gYi8iDJhrbsHtogKFML?= =?us-ascii?Q?AWN8LumMsqShEWHrP9owz544fakSc0pSO+wTY7cViC9bFKAhC9Auv3bxjZlg?= =?us-ascii?Q?juAK0D4wzIMuP77OW+AdnNJyX6yFUoEhM8JYIralFCmL6f7RbAQmkSmBy3Ft?= =?us-ascii?Q?CEEcG2FRd/i8lZfojTTVLo/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6?= =?us-ascii?Q?QMovQyKz2/2h2dmpVmN198rrNVH/U3Jpsjh2grD+5GHnZEbPpaHJmxFxdvdj?= =?us-ascii?Q?p5DLNR5FmfC3gTwpzeYeMxOF86ZsRCBd4Fxfugcp?= 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: 1bdf9aef-b2f8-4ab4-1959-08db2f968a31 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Mar 2023 14:13:01.2661 (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: UYbQER8oTJn0vjosXIgNtt5YwZhucDCJ7G2xRMugl7mZfc6AuiE24nd1Z/nzjEL/xFVJ409Dix71P2wT/DdQ3Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB7798 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_MN6PR11MB8244B8F23390A5BEDF78A87D8C889MN6PR11MB8244namp_" --_000_MN6PR11MB8244B8F23390A5BEDF78A87D8C889MN6PR11MB8244namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Mike, Eric, Ca you kindly review? 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_MN6PR11MB8244B8F23390A5BEDF78A87D8C889MN6PR11MB8244namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Mike, Eric,
Ca you kindly review?

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_MN6PR11MB8244B8F23390A5BEDF78A87D8C889MN6PR11MB8244namp_--