From nobody Sun Feb 8 15:53:17 2026 Delivered-To: importer@patchew.org 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+55272+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 1583190510721171.07405097457604; Mon, 2 Mar 2020 15:08:30 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id FzfcYY1788612xtdmZccVSL9; Mon, 02 Mar 2020 15:08:29 -0800 X-Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com []) by mx.groups.io with SMTP id smtpd.web11.698.1583190508386134261 for ; Mon, 02 Mar 2020 15:08:29 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cDhkC8tQpxXdpBCOjRS7mKT5HNA6wfmFir/keRPiTOcVo1ammQuPNPheqYO93sPz9vXwyi3YUVX9TzI4zdk0mefFDfqlF1GYKKF887tTm94F83bHu+Dr/QHHCLBENmXICVsHeEgN9kJlauiC4jIs1HKiqWYvlMm9xlrvEihjqjsBvF8/H033UL7BpsaJqFqGk6gPGOvZfpLAti9hU+OtdQmMmBt9slLCydA/ZwV9Mk0wHMAqdKdyVo7FOErzM+B4hrJ10gKfFgVbiIHL/kZXV8u1SZ2iUazrPAvATIGOgmhTOCJr3xhDVc7C8UOYjcmoAxTnNcH1YUWq/8DgQA6gMg== 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=/Q/IARb640jluCh3Y7hJ4n6OLb97VyWMlzE/OlHhlQU=; b=MTuPmGzZjLR026o+mkSZSlTPwtva8qOE2CZwF753NZ4AofaU4BgMWu3NCNI5TM6X4ErVCaXStsfWNLM/MxSRQvsQANuZWR0Z8aC6sSnqABrgRHtC007wEZ461w3JBuo/QkVsUQPhMYFSOA6qwLoJDHhl2pIj0wuwdFMJiam1a6A0S9cb7EdvUSin657QCuFtXH0gcKkaPJ4/5FJ6Aef3RM0REF6YfbeGV9Si8ngGPd28uIupNhCuXsLaUdN/dUF1rUJA/Z6XTpuQmvxCy/6H61/Rp6slypbopxLSM+ODoppft/0/f6uiEeGWQnKbYVNmYhbEWfOxOd2OCBaJpU7IJA== 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 DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:15e::26) by DM6PR12MB4201.namprd12.prod.outlook.com (2603:10b6:5:216::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.18; Mon, 2 Mar 2020 23:08:27 +0000 X-Received: from DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::f0f9:a88f:f840:2733]) by DM6PR12MB3163.namprd12.prod.outlook.com ([fe80::f0f9:a88f:f840:2733%7]) with mapi id 15.20.2772.019; Mon, 2 Mar 2020 23:08:27 +0000 From: "Lendacky, Thomas" To: devel@edk2.groups.io Cc: Jordan Justen , Laszlo Ersek , Ard Biesheuvel , Michael D Kinney , Liming Gao , Eric Dong , Ray Ni , Brijesh Singh Subject: [edk2-devel] [PATCH v5 32/42] OvmfPkg: Reserve a page in memory for the SEV-ES usage Date: Mon, 2 Mar 2020 17:07:03 -0600 Message-Id: In-Reply-To: References: X-ClientProxiedBy: DM5PR2001CA0013.namprd20.prod.outlook.com (2603:10b6:4:16::23) To DM6PR12MB3163.namprd12.prod.outlook.com (2603:10b6:5:15e::26) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Received: from tlendack-t1.amd.com (165.204.77.1) by DM5PR2001CA0013.namprd20.prod.outlook.com (2603:10b6:4:16::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.16 via Frontend Transport; Mon, 2 Mar 2020 23:07:58 +0000 X-Originating-IP: [165.204.77.1] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d560f523-f34b-48ae-9a00-08d7befe8c91 X-MS-TrafficTypeDiagnostic: DM6PR12MB4201:|DM6PR12MB4201: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; 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+55272+1787277+3901457@groups.io; helo=web01.groups.io; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: JNfifCpozD00TwbPwqWsHhU1Jr7ik5wzFxIm6wOsJZ169CpfuyARPxwssI1kC0lQav7zvWs4aJ+T/dAa9AhdNUERe9RJw1h/t7VaLCe7DBQQqo0A0h4yLhL9LNAi4xuXQWZYnEZt4zZsqb0Zrr6ocO86HntVIuMB8CpzCpp1925y7X2DyhyjzPJsA2RQTQ9sM3IkvPRpmhwWU7Aej0Jj5WCziqIHM3CDgv0QQOqcCOurbYuGoPQuO3bcKXHv3uP00TOoATWPI/Arq2D7tuDLj8i/5q0seqnfzIMlnisBkOZvyuW2Qtv7vUz6r8AXQ1SPO4cI1qpqjKNsWPvubmck97tfwu2UIn+OyGTZEZu2ZSKHmlCWQMklrlQYzp7ZHEfzbxpoJxv2+zbryONJP1z9aOqpde9HfMecwn7agwAUD2yDWvP/96gOOVpLphzDKCUlRpT6I/UIiZ+JIa5wa51SD0esYQ7U0T2m5ax8VU2knPvY4uNNkHhcb/+4bmi0BDEsZn+A14HNlxS+17QWzpGAVg== X-MS-Exchange-AntiSpam-MessageData: 4rQn/53k08t21gHc/Fq2BpqWUE3l88TcDrQE0kUteanrhrDE180roI9T4gJ7rVBh/6O/Ln5RS9iyZ+t24Vxra5hPkxyk+Jofs3LQzzBMgrO+sbt2IqvlI0uY0HgEW3kJLOB7Z0R9Zz0F2nBo3P94nQ== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: d560f523-f34b-48ae-9a00-08d7befe8c91 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2020 23:07:58.7366 (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: HOQvxd7b+wYO+Xt398I1T7ZEzXh6tmxhMfb8HRknvTItRAN2X0VCTnC6CcGkvsInfOBhCYRZMPukN1ptu4iT8w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4201 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: PyCp7uq8FR5v30u1Y7q1sbo7x1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1583190509; bh=/2mkz5SCgh+nQtdM7KBDTzGB4fFXT58viq9R9JXJfIM=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=mWfu/26wCvkMjoPRPz79E6tLa4B+vEySBvXoqfiR7QJpl2XdVSD8vhO4AqPmHqH7RcQ PturOJ2ou0FVc8eA+kILPlOkxxiphS71/SI+4xNiwZYEH4YRCZw2XOW9FBuJ47SDshcdU qnCwgq9MKQUFoMKbVF4/xYBAIdDH+SK0QSk= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable 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 --- OvmfPkg/OvmfPkgX64.fdf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OvmfPkg/OvmfPkgX64.fdf b/OvmfPkg/OvmfPkgX64.fdf index 39291f413f6d..0fc64075d048 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.17.1 -=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 (#55272): https://edk2.groups.io/g/devel/message/55272 Mute This Topic: https://groups.io/mt/71687834/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-