File 0012-UefiCpuPkg-Create-APIC-ID-list-PCD.patch of Package ovmf
From 521457dde669b136ed6050bafe4a84dfca298616 Mon Sep 17 00:00:00 2001 From: Tom Lendacky <thomas.lendacky@amd.com> Date: Tue, 9 Jan 2024 12:44:28 -0600 Subject: [PATCH 12/17] UefiCpuPkg: Create APIC ID list PCD BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4654 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 <thomas.lendacky@amd.com> --- 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 68473fc640e6..e371dd162934 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.<BR> -# Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved.<BR> +# Copyright (C) 2023 - 2024, Advanced Micro Devices, Inc. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # @@ -463,5 +463,10 @@ # @Prompt GHCB Hypervisor Features gUefiCpuPkgTokenSpaceGuid.PcdGhcbHypervisorFeatures|0x0|UINT64|0x60000018 + ## 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 the hypervisor, zero if unavailable." -- 2.44.0