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 0233FAC0BED for ; Fri, 2 Feb 2024 06:08:56 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=FYjGerZlo1hPQdb61DFeE+XPHyW/Y7rNfe4SsYpCnYA=; 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=1706854135; v=1; b=sNnFEU8W1aaWZMlQMujD+GyIvsPDYhYPew6VydwPRLwF+J7LvcY1jozQ34bRX92td1jDk+z6 dsPB5s7alkwhfUJBXXxFwUGe5zYqr2pynYQ+UkAChyy/osJm+rMooGi9XO+IgYdYI7UCQWWDUrQ nIBbSEvno/taZJEiJjzqjcl0= X-Received: by 127.0.0.2 with SMTP id 4YiwYY7687511xdywWpyawyg; Thu, 01 Feb 2024 22:08:55 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by mx.groups.io with SMTP id smtpd.web10.17426.1706854135092456897 for ; Thu, 01 Feb 2024 22:08:55 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="265907" X-IronPort-AV: E=Sophos;i="6.05,237,1701158400"; d="scan'208";a="265907" X-Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2024 22:08:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="879311586" X-IronPort-AV: E=Sophos;i="6.05,237,1701158400"; d="scan'208";a="879311586" X-Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by FMSMGA003.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 01 Feb 2024 22:08:54 -0800 X-Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 1 Feb 2024 22:08:53 -0800 X-Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 1 Feb 2024 22:08:53 -0800 X-Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 1 Feb 2024 22:08:53 -0800 X-Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.40) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 1 Feb 2024 22:08:52 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=naYzTtKYdCOzG+k860spDcQX5WWHUd2xzWF4uZug8DIHovmQfNanmjX006er+YI8K9KFk3ieueKPaYbAnHiEKGxHjgUIWSSFWJOSfX6mskVU2VN2hh3ToRRnKs6xPO+NUXtIcG2z2ZipC2KmyOtuIlHnGQj2fLJveK39e5EQe9uH+8X3nRFeYQcOTXaZHoHmAzjBrPDaeWMEPQvLbD24V95RaCb19QFBn5DDaYkoCm3WTdUhe0hU9RUnDHhUnoXcUAjIqjKCD629qn/6umcK6AGxO7MFXautricRBBfKRgoTyO8d3N8BEnjEPUxuxZG5Nld2tqSkLoHqL5FOmCq0Lw== 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=UzdEroggcP/I5Ow2Izp61FPcM14cZTicixVLhDtOLfc=; b=nYmCgen8ojcnQAKA+za7baZUFxS0Ye70O6h0cYkfzCoLLIAwEjIcs6fw5UKOOTmTNCkD6wBxSGtq5jr2UjWPEX0VYBrzwkcQjUgJ2ZsGTPYtyNeeG7WDc9Ik96eGA3HgiQs4aZx61EHl1NihSRWQEih0PNql0rkrG9noKGsGc4Ciyx9P5g0BfuPnsDE4hejSco3+BYn6siLiDX9K6wegJTXUZ8n+tMG5+u6iUrFgrPs/kimEwguzrdbC2IQ8vFb26IcOAXr/pm/gvisgTLZsmRHsBqiCgIFU6kbHOgjxwCC1C7m86CDoSgxIgFDuXrakSs8q7styCA68x+xMVRPIgg== 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 PH7PR11MB7478.namprd11.prod.outlook.com (2603:10b6:510:269::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.22; Fri, 2 Feb 2024 06:08:49 +0000 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::fdd3:11d7:1c15:6c2d]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::fdd3:11d7:1c15:6c2d%7]) with mapi id 15.20.7228.029; Fri, 2 Feb 2024 06:08:49 +0000 From: "Ni, Ray" To: Tom Lendacky , "devel@edk2.groups.io" CC: Ard Biesheuvel , "Aktas, Erdem" , Gerd Hoffmann , "Yao, Jiewen" , Laszlo Ersek , Liming Gao , "Kinney, Michael D" , "Xu, Min M" , "Liu, Zhiguang" , "Kumar, Rahul R" , Michael Roth Subject: Re: [edk2-devel] [PATCH 11/16] UefiCpuPkg: Create APIC ID list PCD Thread-Topic: [PATCH 11/16] UefiCpuPkg: Create APIC ID list PCD Thread-Index: AQHaUKUfohTTeuWLf0KGtXtBijvudLD2mwFA Date: Fri, 2 Feb 2024 06:08:49 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN6PR11MB8244:EE_|PH7PR11MB7478:EE_ x-ms-office365-filtering-correlation-id: d2c13601-162f-468b-a350-08dc23b56c39 x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: Rk1rOUNSzOVCcc+grBGcrdPdDPay/w/zA0dLLA+OXd8JjS+tsNdosEA5y10OXgM/bygjNuL7pLz2QogLWwfxxVYE4ikTq0g823tSNBMvrl2DDo93L+tLlfIB6BeOd46Lg4KbPBrAwoR3QxpNPYp9E5Br7pAf8xDEj/YfP2MdeePBi8ZVtZKYIOKC9tN9upnFbwrO8iWGx0C1ZhVWptzLzU3uuMboU8T7bnjqR5wKyPxnVUjMzXeZSoF1t7w4rGNoOSuJT8Avjaene2tRUs/Q1L0TgM5c89r8DQcWH9S1Ton6IdVgvCL/fzQCOvx4LzqXisZZ34aXvsb+dju1bdAkiYu5VhTdCor1d58S0K8y8+u7MHLq1/PWWhkHJEyFOjjgZpJZoP3RbsUXvLpZuuDE1cB0TbhbNZvil/zixCVAnzdVuEUBvOQzjaiYODRUuALRurHsAus3GQkVqdpTiE4vE5WD1kALF5wPQMvwrOwo6o5i3JURdPwrDLA42XZeTyAcNBlMeuT2h2tq15rb5dG5uqo74XvLkb6EcV5UO6dsWQhi29p3ovhLYL7xucz5mZZGw2iFI1tG3ZuTNXH6V05UjllPGC5rHDsAHvlNP5yfMhg= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?NdCGdF9SEj3jDGlrVeBbVBI+RspYoNpZimVwDTO7w77DabtrwteIUENrFJFs?= =?us-ascii?Q?oHGXnBuyJuZEWByzKpiXnUPxVNJS+DvD1PLHxstOPAl3qoNau4AStEYxQ8/z?= =?us-ascii?Q?HJUvlIogNCAXE/031+mgwoMgrbDYEB/Wjt2RsuuP5miiky9FAlB1UGjjElZ3?= =?us-ascii?Q?Oavo/Ni0W95YHjJzyEjKUgwAX3leePkVdxEi1hcwZEDOhHk8asHSRekjSIts?= =?us-ascii?Q?0Bpll5/jA3POAFir0CV5ZP5/aGqhuoZ3FpKH1yuewYJ7oC2QxwJI4mBvfBCx?= =?us-ascii?Q?M4dRFR356vdwFqqO9LjvqX6wTViz1zWGWY+dopDUO2S6r219qM8BeQo0ZC/6?= =?us-ascii?Q?clqqwSSo1pA5+KoJuZnp9wORTqpzgoI8Z/ZfgOlP1ZvY4+j+Uy8aZi3aEy2G?= =?us-ascii?Q?bNNxRMas9xca5AOeNKu2+YVVNFcIgEMKHrZ7/AMC1T6sIsryyetpeJaahQvB?= =?us-ascii?Q?qxBKuHhotqP6T1yoUfRpBVE+gRd0s5/KVS4tbbPQLZobdmUt7Js+KDgBhupk?= =?us-ascii?Q?JKrv/IBULV5t1aZml0gQ1/hiIOOrETNeyCu9zRT+9YkZY0RNDF8KVkMKAi+i?= =?us-ascii?Q?N9oVWlSzpv2W3eGLZO8rBynYU7LyGE1HARfdq6e/ApgZoMHJgFth3isu3I5L?= =?us-ascii?Q?blBsXBRVP0KqiO1OyUycRzbaQRgZebCscx5u3oFIfhOh4cQW0faW67wEHXUY?= =?us-ascii?Q?Ps1UPOta2tH7W3wczX2ZaNm06amHQfzkA6EemIlviR71h7Q353XxsxC1QEhx?= =?us-ascii?Q?gLQB7aInyMdg0J5SZADAq6Z+lx6VfB0uLr634N/CVgTXBLckXcsEOTnVuu53?= =?us-ascii?Q?O0s2R0+ng3SaX6LV5BlchABxHSLG1N5g0Qejh2ocRVPBchLCpBZfElplQAuP?= =?us-ascii?Q?O21VxSsFMIjo03BVjOwmUg7iIp4bV+J5Jhvvsf+nPDOc5l+toywPYBQY++8l?= =?us-ascii?Q?9xuJAYthBzTgu2gb1/wPnL4Ck/Z6HP1m6Af+WfffJ4xnES3tPYMdh64b1JGo?= =?us-ascii?Q?AVsQKpBSg8MpG/bZdG1i4LBoBZvIrBNyYgcCAX5qu6OgIiozQwk1vLc+9A95?= =?us-ascii?Q?euyoy2YBoPEVp+pwqkSqks368WCQ21xFzSI9av1dWbYEtRbqyrRHcbx9e8Za?= =?us-ascii?Q?ZNxPp5uD2cxUjPC8Y03eKYMTxPHZtvVnuWxEkeEMLmTPUS4QeTDaiqE+QfYJ?= =?us-ascii?Q?ekLUwv02BOYV2LlcZG0N6uTJvCR2Lyk7IAgp2wov6Aj1ct9PlYEojICoznXC?= =?us-ascii?Q?oQ3xuGKQ+IuxW/J6imMM9DenVsFqqJCtD2p2xSh5gDoGBpQ89yFafzMe2HVB?= =?us-ascii?Q?YPd4Go5sqCXGtiDuVxTY/bvKscC2qgbJUUjJ0xS0lO7RKYY8rAMrcRjfR2ly?= =?us-ascii?Q?DxnpcU7EVQwljFmP2HDEPxrCZ+OSLlB2GczVac0/AX3X2/2Ke7chD3kaSDAY?= =?us-ascii?Q?FboCbZi8NRtHmpRQgzg+QNrwzae5cWIpnqIQJnfotOPGnOf2bCRuBvPG/FvJ?= =?us-ascii?Q?c5DV3OARLag4OlZGClq/XH0561qZjVR7kmZV8TU3P7jM89t445wcvNJhQ/JB?= =?us-ascii?Q?OeKEpBcby8zRcVnCjrc=3D?= 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: d2c13601-162f-468b-a350-08dc23b56c39 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2024 06:08:49.1173 (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: mmBLHd3/+UkJafwjTDrDRV14mxNrjd8Dv+II8f1Ad2uSvfa5bw10HnOrfcrl5orwBunjRc00of01SbEN1MOyfw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB7478 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: 5ZahQfYXXKJMRaJKSJUbuPl9x7686176AA= 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=sNnFEU8W; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); 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 Can the APIC ID list be defined by a GUIDed HOB? I prefer that we do not use dynamic PCDs to pass the information from other= components to MP code. Thanks, Ray > -----Original Message----- > From: Tom Lendacky > Sent: Saturday, January 27, 2024 6:13 AM > To: devel@edk2.groups.io > Cc: Ard Biesheuvel ; Aktas, Erdem > ; Gerd Hoffmann ; Yao, > Jiewen ; Laszlo Ersek ; Liming > Gao ; Kinney, Michael D > ; Xu, Min M ; Liu, > Zhiguang ; Kumar, Rahul R > ; Ni, Ray ; Michael Roth > > Subject: [PATCH 11/16] UefiCpuPkg: Create APIC ID list PCD >=20 > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4654 >=20 > Create a PCD that can be used to set and get the APIC ID information that > is required for starting APs when an SVSM is present. >=20 > Signed-off-by: Tom Lendacky > --- > UefiCpuPkg/UefiCpuPkg.dec | 7 ++++++- > UefiCpuPkg/UefiCpuPkg.uni | 3 +++ > 2 files changed, 9 insertions(+), 1 deletion(-) >=20 > diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec > index 571b59b36f0a..5ffab58189d9 100644 > --- a/UefiCpuPkg/UefiCpuPkg.dec > +++ b/UefiCpuPkg/UefiCpuPkg.dec > @@ -2,7 +2,7 @@ > # This Package provides UEFI compatible CPU modules and libraries. > # > # Copyright (c) 2007 - 2023, Intel Corporation. All rights reserved.
> -# Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved. > +# Copyright (C) 2023 - 2024, Advanced Micro Devices, Inc. All rights > reserved.
> # > # SPDX-License-Identifier: BSD-2-Clause-Patent > # > @@ -477,5 +477,10 @@ [PcdsDynamic, PcdsDynamicEx] > # @Prompt GHCB Hypervisor Features >=20 > gUefiCpuPkgTokenSpaceGuid.PcdGhcbHypervisorFeatures|0x0|UINT64|0x60 > 000018 >=20 > + ## This dynamic PCD contains the address of the APIC ID list obtained > through the GHCB GET APIC IDS > + # VMGEXIT defined in the version 3 of GHCB spec. > + # @Prompt SEV-ES CPU APIC ID List > + > gUefiCpuPkgTokenSpaceGuid.PcdSevSnpApicIds|0x0|UINT64|0x6000001A > + > [UserExtensions.TianoCore."ExtraFiles"] > UefiCpuPkgExtra.uni > diff --git a/UefiCpuPkg/UefiCpuPkg.uni b/UefiCpuPkg/UefiCpuPkg.uni > index d17bcfd10c7a..329255a0efd4 100644 > --- a/UefiCpuPkg/UefiCpuPkg.uni > +++ b/UefiCpuPkg/UefiCpuPkg.uni > @@ -301,3 +301,6 @@ > #string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsWorkAreaSize_PROMPT > #language en-US "Specify the size of the SEV-ES work area" >=20 > #string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsWorkAreaSize_HELP > #language en-US "Specifies the size of the work area used by an SEV-ES > guest." > + > +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevSnpApicIds_PROMPT > #language en-US "Specifies the address of the APIC ID list." > +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevSnpApicIds_HELP > #language en-US "Set to the address of the APIC ID list retrieved from th= e > hypervisor, zero if unavailable." > -- > 2.42.0 -=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 (#115021): https://edk2.groups.io/g/devel/message/115021 Mute This Topic: https://groups.io/mt/103986462/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-