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 0E795941E61 for ; Fri, 2 Feb 2024 22:56:49 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=QZ6oJBCu79z8zVJuNCSsE4AKDazLdCY52JhiAQgdDC8=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Message-ID:Date:User-Agent:Subject:To:Cc:References:From:In-Reply-To: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=1706914608; v=1; b=bPy+Wi9cyOLflUm63n/lPf6ShObqxyWTktkhfPpdVECdCwufG2KLo1riGhRxgjGMCFxBNYxz EerVRsXctGNZUQNNJDtZKy+s0DG76elZKWkSNjo6fHnU2xrKDH0smGy4UWDEgtUTnlHMBG6QE7p jtClZiYKId2Q9XcciqWBwrXI= X-Received: by 127.0.0.2 with SMTP id oE8bYY7687511xbwnIXd43oz; Fri, 02 Feb 2024 14:56:48 -0800 X-Received: from NAM10-MW2-obe.outbound.protection.outlook.com (NAM10-MW2-obe.outbound.protection.outlook.com [40.107.94.58]) by mx.groups.io with SMTP id smtpd.web10.6529.1706914607644809212 for ; Fri, 02 Feb 2024 14:56:47 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dnXZ+Fo+ieeCPoF11oMO3MgpPN2RkbtalZM/TpcjurHn+HsY5WAcFEH+S7V9Qu5iQ8SmaTmZHe6qOA1T5Q/2ociR2wmtZGRoUJ9dZbVv1QD6DTwZjuV43R6q2T6x6MkBqKnuGqKcIYtU2T9IDCbhKpclMoe3FJIlLisNGJj2RXrv3u0Ijcq756Vax0r8U6t3zGuU0HL39UIAlOQToSK38P4r9MdtLD02wX9a33zzM/kNKUE3cnUMx/G7jGfZq/5pBpL1DyHBDq/tugL97E9ltM+SQIwC/Fq5ad1PBZgelSWa2wVVF+aP8AS1LGyovfs/X3ZEqskkkYEtJqpFElVUEg== 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=itIjylU8ioJ/iNmIKlREip7LIX7XpQDVzTIRqHxcxjQ=; b=c5kTCmnWRq5Y+pLumIy/iBuhc5Ao3CDfNNO9sqN/7TGL1UiRZUt33ohIUHBhBUOUfgcLGnSwlhrdEn02UQAvUQWijXUxhando+QkvJv7VIzzEx1Iu4I91PjZow3bSZB8tzxUxdEEdGk9Rm8waSEn8Ev7eCYmifeODkWsO0sEIeguCzcMphuai+APOEEIKaP/sX4yCki15UKQuzeXoQfISy6hV9x7fZC/KF3UGk2pOJJoJruQVGtPFln2y/E0UbDmyQzKOEG5I4kaNjeWqSrF1/SbXdS8m+0lIsHO/oNXRNh8a7nQvc1pCB1rn0eGSX8WTpL9Oi9B6zrfc5Y3Z0YLSg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none X-Received: from BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) by SA1PR12MB6821.namprd12.prod.outlook.com (2603:10b6:806:25c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7270.11; Fri, 2 Feb 2024 22:56:44 +0000 X-Received: from BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::200:c1d0:b9aa:e16c]) by BL1PR12MB5732.namprd12.prod.outlook.com ([fe80::200:c1d0:b9aa:e16c%4]) with mapi id 15.20.7270.009; Fri, 2 Feb 2024 22:56:44 +0000 Message-ID: <6eac0398-31cd-ac0f-f3cc-0d6982996a97@amd.com> Date: Fri, 2 Feb 2024 16:56:40 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [edk2-devel] [PATCH 11/16] UefiCpuPkg: Create APIC ID list PCD To: "Ni, Ray" , "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 References: From: "Lendacky, Thomas via groups.io" In-Reply-To: X-ClientProxiedBy: SN7PR04CA0195.namprd04.prod.outlook.com (2603:10b6:806:126::20) To BL1PR12MB5732.namprd12.prod.outlook.com (2603:10b6:208:387::17) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL1PR12MB5732:EE_|SA1PR12MB6821:EE_ X-MS-Office365-Filtering-Correlation-Id: 2082116b-93e6-4f9c-d3ba-08dc24423a55 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: 8OxG4wNNRnQ2F7yfGvCE8mCo/Pns2zzxSzsWLyfRfbXp6kHzqzHY9prpmhUf2ZhBp7B5nsILbmmhqe5QV2EcEmgGVzgPBrdRRMKqhouB4Aqjm8zVrMyU3h5ru54gBfAFzlrw5SXtKYRv4N9zikQJlWZoLqsW/BsO5OimcIr+zrPu8xHf4diudVi1hSsZCCaLii2CJRYiZlu2iYkGEt/B3AsnG4vy7VEeojok21pYTaaGR1fbMUfYyzaCFp7jfMSSnHathxhubmW30d1zKTjdvZA6lwDQa1AgCVd8Gygw+bxPV9v4B1cgDv4EdE0sKLqJsRpqwlZ+HqqNJ5/xb6/u6kPL4BaE224xPL+FcETi5wTu0ja83FVSOHQBRcFY3KtF2p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ZR2VPZHBrR1FySG1pOGZ1WDF1?= =?utf-8?B?ZnZQSEdzZmdla2NCY0VzTXpWTW1Ta3hsS2ttaTJ3czJkaFRJR0pYVHhqckFl?= =?utf-8?B?MHdLK2tQU3dQL2FMNDR1QzBBSHo2di9vbDdKUk9xVGxoNCtCdWVBd2dHOXQv?= =?utf-8?B?b2diT01zUzBpbVRCUTZRbngyVFJmbnZCS20wK3RJZlVXZTBoVEwrRjZmcm9W?= =?utf-8?B?bXdKZVM5d0lQOGt6cnNLR3RQdFZJekQ5TnAwNlhKaVFDUlRvYUJpdExGRm4z?= =?utf-8?B?L3ZpQm42U1hVZU9TK1VjT2s1NmxrL0FURE1pY3VGanBKeEFFWmlENVhSQjJa?= =?utf-8?B?aC9qNnp1aGZveUIwb3Vmc3Z4QmExSktPYUxMS1pUU3NUM3R2Yll5YWtMN0Nw?= =?utf-8?B?KzZndk0zbUJOeHNpU2FEWEpaeTE0VjRPWmdDTzVteExvRlN1ajJBcXJ0ZlAv?= =?utf-8?B?VFdCcGZnRW80UFdobmlBQUpWbXFPSmpOUVAwb2dEcVFsSmtoYXZUaDYzaERX?= =?utf-8?B?S1VYKzFGNUdHUEZSWHd1cWlVdDRLeklzWEJLVHh3MW9QZlkxMHZmeTdXaUQz?= =?utf-8?B?K2Z1elJ2WWtvZCtrN1FxVCt2RTczWWx0YjhyQ3RPK2RQR3FST2JMRWhFNUJK?= =?utf-8?Q?H0cZytzkW+OZGclyyH8y0YELL?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2082116b-93e6-4f9c-d3ba-08dc24423a55 X-MS-Exchange-CrossTenant-AuthSource: BL1PR12MB5732.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2024 22:56:44.6275 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: N2qbsD9HzJNWip5DXyy3epsNK/ij4dKojsLKISC9Az/fEmKBgPHSuPlnx6OeUYOB51UMyAXF/qO8Hm3GPgFOXg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6821 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,thomas.lendacky@amd.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: eDpT20xBcsZNuRYoB6SMlrqJx7686176AA= Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed 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=bPy+Wi9c; dmarc=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 2/2/24 00:08, Ni, Ray wrote: > 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 oth= er components to MP code. Yes, I can create a GUIDed data HOB. Thanks, Tom >=20 > 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 >> >> BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4654 >> >> Create a PCD that can be used to set and get the APIC ID information tha= t >> is required for starting APs when an SVSM is present. >> >> Signed-off-by: Tom Lendacky >> --- >> UefiCpuPkg/UefiCpuPkg.dec | 7 ++++++- >> UefiCpuPkg/UefiCpuPkg.uni | 3 +++ >> 2 files changed, 9 insertions(+), 1 deletion(-) >> >> 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.<= BR> >> +# 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 >> >> gUefiCpuPkgTokenSpaceGuid.PcdGhcbHypervisorFeatures|0x0|UINT64|0x60 >> 000018 >> >> + ## 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" >> >> #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 t= he >> hypervisor, zero if unavailable." >> -- >> 2.42.0 >=20 -=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 (#115071): https://edk2.groups.io/g/devel/message/115071 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-