From nobody Tue Nov 26 00:17:08 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+63875+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+63875+1787277+3901457@groups.io; arc=fail (BodyHash is different from the expected one) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1596829456536584.4082381699388; Fri, 7 Aug 2020 12:44:16 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id YTJVYY1788612xFuFfgu7SZB; Fri, 07 Aug 2020 12:44:16 -0700 X-Received: from NAM10-BN7-obe.outbound.protection.outlook.com (NAM10-BN7-obe.outbound.protection.outlook.com [40.107.92.83]) by mx.groups.io with SMTP id smtpd.web12.4279.1596829455609703688 for ; Fri, 07 Aug 2020 12:44:15 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eb2qenBXISHpL4zTw95GMDvjv9XLmKoAWQJ+80XxZxhm1nS6q8Ktsw4+Adxm0M5a3tr18FlQzGZ+gaWqWv9Wravb1npOUx67PS49Fx99/zxcmATgb5u5wHfItF5clcrcLFeDP8JX9+m0VeLeXCrE44t565pxWp7nqaSyb+Hz/yqal3v8AXg84gEoLsSnT+4f51IPuvT6BXzbbmP+tI+pc712F7nDO8tA5SZltL3tMhlIBo2mQKcgwb0Aq1MNLhirVE5JHw09yoIk981Ry9eaOadkC5nZm0A0GCEZFv8FJ520i7xVj5xgoB9EM+mjKWpFEFBtQnfJrDv+bi5SKvzH+Q== 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-SenderADCheck; bh=CkUCsVMLNx44eYiVyLCG98C1A+A/KhHynEKCC72EYLo=; b=QgzKCQR0dEw4EjDJHuYcGOCuAkfuXxCmAgxuHG+SKSwUgRVGKMBGGO8uoEmgWG7sEZoEtho1wtxh5SBeZTpOvzHNQgSujBVdnwKifjpq3KIj+mAGkC3WxgZe7US4Y+OKSBRCDXVVbJ1Ho2mK29jOYgm4ww8S++mCjltjzTyuct5QkmWSqUKLa2PnNyKaWOpqVwj2Ej/KgcEQXIMJ0uaL6oJyx8d5Lp7PEzhU4iESozc4lhyb7GsDbG67TB2SYhZrGChYl3Jf/L0+bI4ivnLQ2/X9vEYJ9UDyFDhTaHWOHQM8A77XIf17Rzj1ssWX2UHO2SgyEYEAnN3D5iGhynXVqg== 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 CY4PR12MB1352.namprd12.prod.outlook.com (2603:10b6:903:3a::13) by CY4PR12MB1798.namprd12.prod.outlook.com (2603:10b6:903:11a::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.19; Fri, 7 Aug 2020 19:44:13 +0000 X-Received: from CY4PR12MB1352.namprd12.prod.outlook.com ([fe80::9181:78bf:bf0:702b]) by CY4PR12MB1352.namprd12.prod.outlook.com ([fe80::9181:78bf:bf0:702b%5]) with mapi id 15.20.3239.024; Fri, 7 Aug 2020 19:44:13 +0000 From: "Lendacky, Thomas" To: devel@edk2.groups.io CC: Brijesh Singh , Ard Biesheuvel , Eric Dong , Jordan Justen , Laszlo Ersek , Liming Gao , Michael D Kinney , Ray Ni Subject: [edk2-devel] [PATCH v14 33/46] UefiCpuPkg: Create an SEV-ES workarea PCD Date: Fri, 7 Aug 2020 14:39:18 -0500 Message-ID: <26aea09a30e0463b18e54ae9ed900fa70f2d10ea.1596829170.git.thomas.lendacky@amd.com> In-Reply-To: References: X-ClientProxiedBy: SN4PR0201CA0023.namprd02.prod.outlook.com (2603:10b6:803:2b::33) To CY4PR12MB1352.namprd12.prod.outlook.com (2603:10b6:903:3a::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from tlendack-t1.amd.com (165.204.77.1) by SN4PR0201CA0023.namprd02.prod.outlook.com (2603:10b6:803:2b::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.18 via Frontend Transport; Fri, 7 Aug 2020 19:44:13 +0000 X-Originating-IP: [165.204.77.1] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1eaa33f5-0e7f-4964-1d6e-08d83b0a433f X-MS-TrafficTypeDiagnostic: CY4PR12MB1798: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: szB28nHYovGlmh3e//9UM9alBDk5xn/rVppoHUKnYFbM8S2FFDz44VzgruiMRYV1XdHNrYjt1AP66zEp6Xs6dmtEVA9q8dajHl2x9JsqmLTDlAYc2FUt95oXaPXal1sLN6KKN1F42AC8VCxKXptISIvfDwDwJwANkHY3GY/H/ILxJwI1ZQsRDug64sJu1P/oYqxJX76tiMSZhkgCMRtgTmwiEwk/lPac3/gr6/S/kyngJHKSiVNyMxWpJWMMd1+VUtwqxyb8Tk6JXOe1KVDi70G2n6mzB7wBe+/PAlMBaaYt0vqpEwaQ/AV7g1ERer/4wyDm/0II2VXW/cCKVjKHrdTZxZC2lGsChOMqZQpDbUH1Nl1zAJ1TPtsJT2lpDjbQQzvS7pWi2j76QinG01xeOaB19LUdcNIea4rDEKn5Zxj0SI8SeGpHAq7+FKMRgA/7aZcD/CZ+hKEBxJVi+ZJdyw== X-MS-Exchange-AntiSpam-MessageData: 6XcSgMT/O2jh5ADAFso9davG3YZAUcsd2dGI00JX1+baFlvqNMoPTjMVDk6o4xTpcmAmu2/VrdDWmUSVPLZHzTj/xmn0ie6sZxQNAxqC9aXxbDbEo1rTiCCfeoc8LtB2i9I5NVy7+OczET0vGDQGtCGLI6rZaW1PX8mcieJ1Uf+ZL4cj/UGTLI2vSz05OHTpbr73UtT3NOADf/gBKaNHnScu7t7AsbpMS1KNb3NF95csPJ1kKSuu4rv+22HqKhk1yZ1yADZ7/UrUOoDMdDA2TfUQo/zhjt4LAb2ycCM/fr1oZCOOKq0SEZMEwl68MGG/hiWabklYy0zlpg98Jm/fYVSuLQMOdNnhAUZ+xTSz+wZT8gwvNr0DyIR5byEb2WCKqOlrBI8CdxaGp5+w8z1JYBwnSLs7keQmrj6cbLzFbW9fS2z5We7jpdRcY16+Nu479ntOp44uGOuntv9qEr3Hmj2AqId1JYndHuQPmOEh/OHgYHZWeQnC/XjbMuaNXR6kdYaXtay7krD3Xs8tOrd8NYA2KmDM28q8T5cHlw37Trkf9DmPWQPlPvdjXWemceeCJXy5D9YtICu17bdCgct0qP2zTEBgm+ANvEHGB7AUZf9JmYTsMJ/EAGxa3+0nJ2egy27TmNIhTfHb0yMk4g74qA== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1eaa33f5-0e7f-4964-1d6e-08d83b0a433f X-MS-Exchange-CrossTenant-AuthSource: CY4PR12MB1352.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2020 19:44:13.8545 (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: 2QrL84B8MsXU1/JTtTHpM83h8HtOjMg53OndYWj8pZYr/8eJWYG6aJba1vNUSieJWqMsYuvSAAnMXga+uFcppQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1798 Precedence: Bulk List-Unsubscribe: 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 X-Gm-Message-State: OjXX7jA0j3x8hQYb5UHtP8gSx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1596829456; bh=so0zgsFtlyqD8uybswd6/Jq/6OTP5xLxvSZ03WWh3Jo=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=PA3OVB3S3ApRmVq+C1+JODx5HM3/trza1ODjmtnSrO1m9iZHcHEyWRUG4QxMyw9W7ef cCRkkmQYaqU3UPvmidF3NsIO0FTHYX6nMSJjJgv+Yx4k7z7sVdb3ob7fGBQywdFe3K2Zc rvJc14L9TwS8Vwbw3yMdJIDsO9u5DIQBBxQ= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Tom Lendacky BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2198 Create an SEV-ES workarea PCD. This PCD will be used for BSP communication during SEC and for AP startup during PEI and DXE phases, the latter is the reason for creating it in the UefiCpuPkg. Cc: Eric Dong Cc: Ray Ni Cc: Laszlo Ersek Reviewed-by: Eric Dong Signed-off-by: Tom Lendacky --- UefiCpuPkg/UefiCpuPkg.dec | 8 ++++++++ UefiCpuPkg/UefiCpuPkg.uni | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 17228cb5a84f..d83c084467b3 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -164,6 +164,14 @@ [PcdsFixedAtBuild] # @Prompt Specify the count of pre allocated SMM MP tokens per chunk. gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmMpTokenCountPerChunk|64|UINT32|0x3000= 2002 =20 + ## Area of memory where the SEV-ES work area block lives. + # @Prompt Configure the SEV-ES work area base + gUefiCpuPkgTokenSpaceGuid.PcdSevEsWorkAreaBase|0x0|UINT32|0x30002005 + + ## Size of teh area of memory where the SEV-ES work area block lives. + # @Prompt Configure the SEV-ES work area base + gUefiCpuPkgTokenSpaceGuid.PcdSevEsWorkAreaSize|0x0|UINT32|0x30002006 + [PcdsFixedAtBuild, PcdsPatchableInModule] ## This value is the CPU Local APIC base address, which aligns the addre= ss on a 4-KByte boundary. # @Prompt Configure base address of CPU Local APIC diff --git a/UefiCpuPkg/UefiCpuPkg.uni b/UefiCpuPkg/UefiCpuPkg.uni index f4a0c72f6293..219c1963bf08 100644 --- a/UefiCpuPkg/UefiCpuPkg.uni +++ b/UefiCpuPkg/UefiCpuPkg.uni @@ -281,3 +281,11 @@ =20 #string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsIsEnabled_PROMPT #language = en-US "Specifies whether SEV-ES is enabled" #string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsIsEnabled_HELP #language = en-US "Set to TRUE when running as an SEV-ES guest, FALSE otherwise." + +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsWorkAreaBase_PROMPT #langua= ge en-US "Specify the address of the SEV-ES work area" + +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsWorkAreaBase_HELP #langua= ge en-US "Specifies the address of the work area used by an SEV-ES guest." + +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsWorkAreaSize_PROMPT #langua= ge en-US "Specify the size of the SEV-ES work area" + +#string STR_gUefiCpuPkgTokenSpaceGuid_PcdSevEsWorkAreaSize_HELP #langua= ge en-US "Specifies the size of the work area used by an SEV-ES guest." --=20 2.27.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 (#63875): https://edk2.groups.io/g/devel/message/63875 Mute This Topic: https://groups.io/mt/76056576/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-