From nobody Sun Feb 8 18:08:48 2026 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+60804+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+60804+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 1591363734569400.54666599186976; Fri, 5 Jun 2020 06:28:54 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id NfD3YY1788612xQi2i45Uktr; Fri, 05 Jun 2020 06:28:54 -0700 X-Received: from NAM12-DM6-obe.outbound.protection.outlook.com (NAM12-DM6-obe.outbound.protection.outlook.com []) by mx.groups.io with SMTP id smtpd.web12.10872.1591363730710345513 for ; Fri, 05 Jun 2020 06:28:52 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=adxpA8SoQ+kbm+xQgxqqYJ0QykIdOqpko168ibknYrOhyoZmJZN2flpAjGyd2YEpvRSWEweaZzYH0XfH4DywgsFDXzcAnTZs+ZQkL2N866pftV/Xu2oO4bFkCzjjjL4pF+02YkwqD6yvKPyS6m+xgV5P2fwqC9UqoCSfdvWAXXCYLitzOF6Fe5nEwYb6zYQZBoSOjIHLdoM/4R8tzp94B5ESNZXQQ2v4U2PlgW8M6nhQGJKTFkSGRj2Eko/94AkDwY5qK271NW1kpubUtPES5YjgcMigDVxH5hpQulp28MrY4YSr/0DlFsgbi3EqbfFlmJwrRWK2xs+U/zpEYmbmYQ== 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=U3q93+NuIUB7B4CPcieqHrH0cSIyR8XFD4GjumXbJNA=; b=kjEnj7aYG6ioHSXS6mSWLKqD/uUnD67ZQPjXvY5KOyU6A7S54VRHz5lddzZ4tARSpEb9O3hVR8iGgX4LeapDeRNgZHCNiH1AqpzR8UhinipWgR4ftbkAi4ZF4E5xjuSdxPzjshSXt6ASlpeTLVyzDgJATqyHXOK+EmcnphitlGwUk4TcUeFIf8ZDOEfHdsCCsknwNuuHWTlxx26XQiT7TsML15oWcgMUxP5ZI8jYCsll9cTFUc23Ze+j2XZzwKh7tXq0k5y/JEiNwxAMA+BF8CcZc6g+0+oUpgF6N6+oP7j1SiC+bk2mgZJ1KUEV/uj+wpEqKcUyX71tT8wo54pQ8g== 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 DM5PR12MB1355.namprd12.prod.outlook.com (2603:10b6:3:6e::7) by DM5PR12MB1354.namprd12.prod.outlook.com (2603:10b6:3:7a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.20; Fri, 5 Jun 2020 13:28:50 +0000 X-Received: from DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::4ce1:9947:9681:c8b1]) by DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::4ce1:9947:9681:c8b1%10]) with mapi id 15.20.3066.019; Fri, 5 Jun 2020 13:28:50 +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 v9 34/46] OvmfPkg: Reserve a page in memory for the SEV-ES usage Date: Fri, 5 Jun 2020 08:27:25 -0500 Message-Id: In-Reply-To: References: X-ClientProxiedBy: DM5PR19CA0060.namprd19.prod.outlook.com (2603:10b6:3:116::22) To DM5PR12MB1355.namprd12.prod.outlook.com (2603:10b6:3:6e::7) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from tlendack-t1.amd.com (165.204.77.1) by DM5PR19CA0060.namprd19.prod.outlook.com (2603:10b6:3:116::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.18 via Frontend Transport; Fri, 5 Jun 2020 13:28:22 +0000 X-Originating-IP: [165.204.77.1] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7b4096aa-8e46-4b69-dd5a-08d8095451c0 X-MS-TrafficTypeDiagnostic: DM5PR12MB1354: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: wkra++SNRagRZPWgMcx7xqnYpVRA+UX4k2suJATlTP6xkCMh0xmOXhyV07DUEYaBQbPdQH2tgmZUa5RSfhsX6H8hxPGvXp4nVhnFLh9bhbNCyE7JpQByIJZlszscE4BvEHaJnYqBQFySr4HUePV7fDSVrvR8y6fOLSRgqLrsebQ4gM2Sy49GsvDKkrPZPHcCdTsqFv5GxpXeCOcnHdwIy5WlwaUQk4QYQrbeV9v6soqirjt8cFI6HQ/Jb/D1PfsgwUb31nmoxb0KSYItjzNV0OnObWswfF4FALmZjKoB7+8AeHh/K588KP3/lWAAQ9yrxMdaI86R9OFS4u18quyT9UrxwCgBDLnpc0r7tY7u7GQ4JYjOAm/rh6+CHWcRgBmAckTZLs0IlXDDCjZ/oBe4oCMuQb6BBzzL61cVCrx5SWPSLNPavNi4MmVBA1rGCafsWC99UGKObC3I9PpYy4PnyQ== X-MS-Exchange-AntiSpam-MessageData: wV8cm6dhoXKbWG9oK2p7CaX12dj9xWe/PmeK/R7RUN6WgmLLAqSVS6yTiA3Ff0q6RjVQV2mAHja7aYh0CQz+Msy7ksUsFrgxxm62Ru1pC9GyL2zMNPQ1h54BRkwK+zaBATgR/AeqH1KN2lKBnUVIi282zOTSEhBtFU9QGbv4UBb53lgZSO/leyOBol9k+eyPx71kKZSYSYAPi2cKcDb1qWMk7ggrsDj+8nA6ZwFTgAW/O4YUSgPTp4mR+ZZBTcP7tw0TAJLijLz46kg0hVo/6YyfO2o6fs3NPICdNODY2cNliuV9bzyL5qqkpgvKdmCeNTwyPMd2U2IWGM7F/6RjExkfd6MBda4WQyg/8i2AucQvSiHoU8Rzn7hdmM2x31/zrSWDIgnjoIyeTtUNgCAgaRcJfKUh4N9QyAQiA0G8JLlRybRr1Dnm63NebM8AYapo2zDnnnBkXGwWb02AI3sQN9mZfT0tC3vHSGlGKQNSD98= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7b4096aa-8e46-4b69-dd5a-08d8095451c0 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2020 13:28:22.8451 (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: 7LIplbn1tKxDyjZLvlKJeT2Wx1ZEKgeBqtsajKK+eJ43sebwLprpToketJRvzi7Ft+/XgPoy21E1rveyh35+xg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1354 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: LsOoJuEZM6Ue8r8ASb3gDCEFx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1591363734; bh=v4LPDnVWwDCUADP+B78fJtReJyzAF4FPnHLInnML7I8=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=FjRGZYkQ6ggEo4ZNz5KrGVoIr3X9cksQiWQ8OztKgLnFrDPcHUYaUSHn4+gMc3OCyEY Wu2jO3+ZBR9TYe0hjPNv19irjdB4Yd18Ylp0hOLBwIAmgtSvCts1l5de+6sXyjvsORHRD iLYezPVFHto5xL+a+zq2BcOkRny63Nn4nzE= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2198 Reserve a fixed area of memory for SEV-ES use and set a fixed PCD, PcdSevEsWorkAreaBase, to this value. This area will be used by SEV-ES support for two purposes: 1. Communicating the SEV-ES status during BSP boot to SEC: Using a byte of memory from the page, the BSP reset vector code can communicate the SEV-ES status to SEC for use before exception handling can be enabled in SEC. After SEC, this field is no longer valid and the standard way of determine if SEV-ES is active should be used. 2. Establishing an area of memory for AP boot support: A hypervisor is not allowed to update an SEV-ES guest's register state, so when booting an SEV-ES guest AP, the hypervisor is not allowed to set the RIP to the guest requested value. Instead an SEV-ES AP must be re-directed from within the guest to the actual requested staring location as specified in the INIT-SIPI-SIPI sequence. Use this memory for reset vector code that can be programmed to have the AP jump to the desired RIP location after starting the AP. This is required for only the very first AP reset. Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Reviewed-by: Laszlo Ersek Signed-off-by: Tom Lendacky --- This patch has been reverted to the previous v6 version. --- OvmfPkg/OvmfPkgX64.fdf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OvmfPkg/OvmfPkgX64.fdf b/OvmfPkg/OvmfPkgX64.fdf index 88b1e880e603..8836b30a0cef 100644 --- a/OvmfPkg/OvmfPkgX64.fdf +++ b/OvmfPkg/OvmfPkgX64.fdf @@ -82,6 +82,9 @@ [FD.MEMFD] 0x009000|0x002000 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbBase|gUefiOvmfPkgTokenSpaceGuid.P= cdOvmfSecGhcbSize =20 +0x00B000|0x001000 +gUefiCpuPkgTokenSpaceGuid.PcdSevEsWorkAreaBase|gUefiCpuPkgTokenSpaceGuid.P= cdSevEsWorkAreaSize + 0x010000|0x010000 gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase|gUefiOvmfPkgTokenSpace= Guid.PcdOvmfSecPeiTempRamSize =20 --=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 (#60804): https://edk2.groups.io/g/devel/message/60804 Mute This Topic: https://groups.io/mt/74692455/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-