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 BE8FE941BAD for ; Fri, 26 Jan 2024 22:14:53 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=xO0WplSRUAvs3TMq8R27He+exff71B/b07MwwuPsq1s=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:Received-SPF:From:To:CC:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding:Content-Type; s=20140610; t=1706307292; v=1; b=j8d5vqWTNlRX66pwINfByLExlYBlAXm2j85xOvFNtV4IhoeYHeooVDw0DN9E3SHYq0EW3Zgx PYBvowU/VPemydmxVD8pzzcOrkTww2yjvib8hCrfYnruRszxiZiRVWZ3cb1IKld9hp/0IK+5n3U SuzXYI71TXTYHr21SnlEYELc= X-Received: by 127.0.0.2 with SMTP id ZzwwYY7687511xNPe5XCEbtT; Fri, 26 Jan 2024 14:14:52 -0800 X-Received: from NAM10-MW2-obe.outbound.protection.outlook.com (NAM10-MW2-obe.outbound.protection.outlook.com [40.107.94.84]) by mx.groups.io with SMTP id smtpd.web11.2974.1706307291921011456 for ; Fri, 26 Jan 2024 14:14:52 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BY3ud+LKXlJzsHUUrU3aOx0TgvFv+FLxKQWufOES5jTlkRp4ZbZGkKdpV4HX2CaDBMxz2brTybZ6AIywBAUYmwlO1S/mMO2QXXvgnzp0x83l7sZ0menXQ1fSLKrER5IknO7PyH89gUNf7CinIWhwiUkaKuCAoqnutjuqhDjVviCZVgrefdA775OLv2A1dfp7gfLJiA5j8QYNg0AWI4K0RHFw50OQMw5jTEMU55rUDQoKs0ypQTyuK4DojZxEDzT3PsUS2H0lkYEaqC20GzRbiSkCNNvaWbLP0oVbs6+OdQcHBrfzR09D8mzzLlois7BCdkmwQ9dj+h76Bg+J6QFGGA== 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=WR0OB+nu1PoQhVPrwZeIvLz8J4C4aggALCH2cMUQ9/M=; b=TW3DFGMPoW45NTY7HpCO9tGbeGMqNyVPNQ2oEbF9dTWxcv34tv8lrifZIMGZGwTdDbdV2wEWvuxhQCv7rKhCEOM0GBeJsdiatUNW9lONhzkhy6cafe/I1yzq2bntXvNqHBgK7PFr/RBqmChXeHQzSGDMlmzY+TuynsltkVWHZzGRO+mm8dnXFf0HPOKZ++Wu0XZ3SDXajM9V4PTB53P2QAxycAmrLyy2buG7huo8CRD5UJat4QC58McSKA1vV6E9RAuXdTfdbGkyyeSE7poncL954GZ19jjVKCPlK/eRKXCxEI34QVwfPtZwwN34hGEtZkAMjU1p+Lqdz6FKp5tnVQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) X-Received: from SJ0PR03CA0051.namprd03.prod.outlook.com (2603:10b6:a03:33e::26) by SA1PR12MB7200.namprd12.prod.outlook.com (2603:10b6:806:2bb::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.26; Fri, 26 Jan 2024 22:14:49 +0000 X-Received: from DS2PEPF0000343D.namprd02.prod.outlook.com (2603:10b6:a03:33e:cafe::7f) by SJ0PR03CA0051.outlook.office365.com (2603:10b6:a03:33e::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.24 via Frontend Transport; Fri, 26 Jan 2024 22:14:49 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C X-Received: from SATLEXMB04.amd.com (165.204.84.17) by DS2PEPF0000343D.mail.protection.outlook.com (10.167.18.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7228.16 via Frontend Transport; Fri, 26 Jan 2024 22:14:49 +0000 X-Received: from tlendack-t1.amdoffice.net (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Fri, 26 Jan 2024 16:14:48 -0600 From: "Lendacky, Thomas via groups.io" To: CC: Ard Biesheuvel , Erdem Aktas , Gerd Hoffmann , Jiewen Yao , Laszlo Ersek , Liming Gao , Michael D Kinney , Min Xu , Zhiguang Liu , "Rahul Kumar" , Ray Ni , Michael Roth Subject: [edk2-devel] [PATCH 11/16] UefiCpuPkg: Create APIC ID list PCD Date: Fri, 26 Jan 2024 16:13:10 -0600 Message-ID: In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS2PEPF0000343D:EE_|SA1PR12MB7200:EE_ X-MS-Office365-Filtering-Correlation-Id: f669178e-403d-4c65-a0ad-08dc1ebc365f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Message-Info: Wb0qRYRHCnAGsoJQU/zWw/mGq6l1SiOdKYPR4BBw9FiZ42N2AnoHwGsShaXAwsDHAa8G30Khyv6JehB8mEBzvJNgnnfFhE7PPSRm0bd8E5ccvJBegAdMLYdJ1kpO1Pis2u9ozqVxW6lN85J/tgXlAq9lCSTeew12vW1H73M3w8j6CTjkrRCyxYceUf93p+ZXSi1/3q5CsXTv23Wm8MjxmhSz1RkIqyvT2ja3iSIZspg7IbNABjT/1kHKaO5QWTlCeLOcab1Nr73duJdratpRfNl71SGKmYKDHn1+6zRM4635+G4AhbVQ5CK38FV9gelXd8fV0ViF2Hpo0VhNyFme6ghK3R9ZbRw+ccMeLibTb6KBfZJXrtrZwezWhbr8dZQ3VlSOyeyJqaZtkWv23MRBXKSc9/3Swz6vngD8YvLdCGxsASImYbvBGui/NKdAHf/yW3ebL6xPgX/c+I/Tw3bWS0InOMtwefmEohT/b0LKG9tTwEUmt9P8HkViuGPE9DSQXFkiJU7eUFdHw5t0SjyGVEF1KaxMmLVF7IkvKdhjhzUNnP8jQmNugbMsu4H9F4EFjx643HguteA2FFzMZB2kKpMEbQ3VyORiMggt5H0eMnCva+1qmr2t57rSH3KWNWHT6B/tZoK8Wo+piN2B4HoLZYSJr0+V/ZUFO3NmUq+QpQCn58DipEllqThrieqCglpsVshtJQxhim7ON8yXPhw/MxrQcp0VrRHqA1rzc3UNxby+sKqjCOMRSpA5dOIES+zA8ydtOC8nXytntCzgVsXq1A== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2024 22:14:49.4064 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f669178e-403d-4c65-a0ad-08dc1ebc365f X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DS2PEPF0000343D.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7200 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: 1L6zuInNSkVHOFvzLY9nXqdRx7686176AA= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=j8d5vqWT; 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 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 that 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.
+# Copyright (C) 2023 - 2024, Advanced Micro Devices, Inc. All rights reser= ved.
# # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -477,5 +477,10 @@ [PcdsDynamic, PcdsDynamicEx] # @Prompt GHCB Hypervisor Features gUefiCpuPkgTokenSpaceGuid.PcdGhcbHypervisorFeatures|0x0|UINT64|0x6000001= 8 =20 + ## This dynamic PCD contains the address of the APIC ID list obtained th= rough 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 #langua= ge en-US "Specify the size of the SEV-ES work area" =20 #string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsWorkAreaSize_HELP #langua= ge en-US "Specifies the size of the work area used by an SEV-ES guest." + +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevSnpApicIds_PROMPT #langua= ge en-US "Specifies the address of the APIC ID list." +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevSnpApicIds_HELP #langua= ge en-US "Set to the address of the APIC ID list retrieved from the hypervi= sor, zero if unavailable." --=20 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 (#114637): https://edk2.groups.io/g/devel/message/114637 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-