From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (NAM11-BN8-obe.outbound.protection.outlook.com [40.107.236.41]) by mx.groups.io with SMTP id smtpd.web10.1352.1632163583824013575 for ; Mon, 20 Sep 2021 11:46:27 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@amd.com header.s=selector1 header.b=NI330XDy; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: amd.com, ip: 40.107.236.41, mailfrom: brijesh.singh@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iNVIhSt9MFlC7AOqyrOSfLdzlhxdwJhBFbZoChCwlpSlAOvHtjGfYGJZmirWTAN1DoSEt4h6lKIUcgM3+fU14Op9qPxk0L+R+Fy389xhiIsDABVMz4iyU2V/uSZ5ZZ2qP1vYFXvIFO2+43ENJ0yvodxS2ylecMCotR8XarJ3yFyZ/nuJrpg/1TKrkwJyI/j+c5479isLGix/7vUpoWrtNzGMMzQEqG80vY6/2fMgJr22LJ0NRc5VJ/x3rtYpx2GWSHi2F+wEgSefFSr/YQp1+153p5e5QFXJYe5vO5qUAr64F0XHfPmqUky+wwKw1qD3OQzjK8tdvBxauR9so18nFw== 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; bh=ldxEEKujc1yaoBIzE92ampR6T+38A2/ykJrX2SKxH8k=; b=L21vFVIHw3CNTsV/x2kZQ1nK8vZRa6+KuJIEYhcpFMjXgz1tq/d47gt/e9Xp1YgcBeWzQB+96FM7S+VNrE6cgF6WxFgG25puec08HmwvQutfUOhY4sVdhjPXq31+4c2YcXzHmd1b8Cz2YwXIVg5dXPzErj0t3eTeqP74apmHpsoIA1vXaNU7g6iQWGXHTSF5NmXjAQ5Cksi0UfB6fE9tJQK2yzjfQaSWESRxWSXDAOv6WqDg9G8wcxNlbF0AZS05pu2aG4UZl8ykSYHfbAveBiqw2pbm/nCjb5WB4x9nnrRgY0J8igev71yyPLh2+Eya1krZ588z4T8AijF278dCwg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ldxEEKujc1yaoBIzE92ampR6T+38A2/ykJrX2SKxH8k=; b=NI330XDyFMN+wsRE1yjWznnPlM0/bUSSw8LoG1G0xMppfAd1wXaWx5uiwaLr4xqfbRh+pNHpzobGz+JNmrwrX19szjeozPCHjVE1BdRxH/6VGsRfqmsQj3H7flXzDXXJnxeT9V4dAJv9ad55KmDiHIrWCSQlwJzmwcTeMke7kac= Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=amd.com; Received: from SN6PR12MB2718.namprd12.prod.outlook.com (2603:10b6:805:6f::22) by SA0PR12MB4512.namprd12.prod.outlook.com (2603:10b6:806:71::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14; Mon, 20 Sep 2021 18:46:24 +0000 Received: from SN6PR12MB2718.namprd12.prod.outlook.com ([fe80::78b7:7336:d363:9be3]) by SN6PR12MB2718.namprd12.prod.outlook.com ([fe80::78b7:7336:d363:9be3%6]) with mapi id 15.20.4523.018; Mon, 20 Sep 2021 18:46:24 +0000 From: "Brijesh Singh" To: devel@edk2.groups.io CC: James Bottomley , Min Xu , Jiewen Yao , Tom Lendacky , Jordan Justen , Ard Biesheuvel , Erdem Aktas , Michael Roth , Gerd Hoffmann , Brijesh Singh , Michael Roth Subject: [PATCH v8 07/32] OvmfPkg/ResetVector: pre-validate the data pages used in SEC phase Date: Mon, 20 Sep 2021 13:45:39 -0500 Message-ID: <20210920184604.31590-8-brijesh.singh@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210920184604.31590-1-brijesh.singh@amd.com> References: <20210920184604.31590-1-brijesh.singh@amd.com> X-ClientProxiedBy: SN4PR0201CA0034.namprd02.prod.outlook.com (2603:10b6:803:2e::20) To SN6PR12MB2718.namprd12.prod.outlook.com (2603:10b6:805:6f::22) Return-Path: brijesh.singh@amd.com MIME-Version: 1.0 Received: from sbrijesh-desktop.amd.com (165.204.77.1) by SN4PR0201CA0034.namprd02.prod.outlook.com (2603:10b6:803:2e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.14 via Frontend Transport; Mon, 20 Sep 2021 18:46:23 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8e2b0e19-fddd-4631-c96f-08d97c66f22f X-MS-TrafficTypeDiagnostic: SA0PR12MB4512: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: H8shb1Nprpzg5pDMnYxtP8YEhT/yPj9MvDaffyxlUU34CJyyGa5KznUpSiWPIGiIosnwI8p0VXF7ITDJ5BPNKUV2oCZKni63vNwhhk+Q0V8Bj7xoJNz+rCv0QSsskG4j1jKAJEbovFNBfZhvmTSThk5z7dy2+dWIGFH5HSO59rQCT4lW4pXw9MTbT5a2P8HvZ/a8j+UDFUotPpzIHZGD+GWYIfxTtpEdcdp2q+TkSl4NUz/VtqCG7e6EKEjMMQOmQHmJnKXSlX05MRaInKGe901Oj8z21TVQLfu2ntoR3DgYii4u7Dab8mQaoQ+o45Yb89mcSPCssL3/yFSXB5mmmB2I9bmOHDGObV1SwfVodXo9FQG1RwTPfALbMnI1mPCWvXDsX7ZN209BBPLc2VMmewoQAelsq77vXKAFRKpFcalkDboT+RJwr7CGofoeAWi+UP59VtckUGyxEPTXh80p16C+vSUeHnIvD8nSjxcQOs53NA/qKPHDzVt28/XXdynGRB4KgiLlg/RJzX2scpcSsbM5++i/6Bn0XpRlLBzaLyLmHnD1YMbH+kcdB4v6iXeJEDmfaHjf2GfzFy060U65P/HqfUXFjneggCsAloCQdHi0HGkW8/+Jvdfn6TCbOHcp805MmOQB7fgnjqeMbj1HHoJ9AlqjI/D7yl6VwWRuYPACbJ4Ih1WW34rSx9ZVEplG6nLcMHtzbp4tu3nv94sdrj+92wMJrXq1q6/TWJyUBSU02F4NhmM8H78PRka4ToqwJOqJFc8CuJXzeRAw/nAys0GZC+haLBBqloVKIAH8JLo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR12MB2718.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(136003)(376002)(346002)(39860400002)(396003)(19627235002)(316002)(26005)(6666004)(2616005)(83380400001)(38350700002)(6916009)(86362001)(66556008)(7696005)(1076003)(956004)(966005)(2906002)(36756003)(5660300002)(54906003)(4326008)(6486002)(66476007)(8676002)(38100700002)(52116002)(8936002)(66946007)(44832011)(478600001)(186003)(15650500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?FHOSsAmQfodDEndBzKsczRcG2x9De1MIbHrnGkT8BGaNo4+RyTHsOWlKpt3G?= =?us-ascii?Q?H7Sk5SgwQdul44TYSNMJU9HJE8SCU0zVae4sA+SsXNPGbtVOqygkmvBTjnVp?= =?us-ascii?Q?NEtVIibIm1flLLq/XtFvSVR6UDN2j0/ELtKrgWZ0lJUEZkIMkBu2bcLbNWQi?= =?us-ascii?Q?reevqdrrRBRhOeVh3uDTdcPkF9DccjW0Tzri6YYnYh7IW7jdfeuOAJlD6Ics?= =?us-ascii?Q?6pw6t5iBs4QyEZFrcXiBomK6aOBHVvBNVO5IhHkYjLRz2p52JlNr6n0a/Bgm?= =?us-ascii?Q?EtS0WN71pUiXYJScPdXE6AfdniWg37GxN5y+jBXUJCbGo1LIt45QihjOWjnU?= =?us-ascii?Q?yxYVJVvdLXwdd77DywrkxUn5FChLgwkHGS/4Lpvum6hnv10ktCG0Z0Xxpy13?= =?us-ascii?Q?1rBrxzH/CN4yb/McnYhApTfJSG5W9Ok92svJL99uVUpONLr6XZR7sOdflVNX?= =?us-ascii?Q?0WL52hFD0/DR6dD2nv1EgEMOSD6KR7OXxFMWqGUqgZeImpLGMJjoekPLZ+7E?= =?us-ascii?Q?QMRw0jQe6Rwgi6uYA0Dk7XQX0uJ9dviLD92tWQ31hmoT0cTHy8Z/FokciSeZ?= =?us-ascii?Q?tHyYrkwGkcPD12aPRA8Qr96m+4jzRhpskezVlCPp4acGyiccfc+IySgLAptq?= =?us-ascii?Q?0prNKRc6zUht3Ylc/W5JC0eCfnxdLGW68f3ApKGW1lrS13HEOLR4CX+YAFp3?= =?us-ascii?Q?wjYJapnUEuKdCSgdXAw2QD5mvOzV4Yhu1h3fE0VjEfizpqrqzKNc2R4PJmtI?= =?us-ascii?Q?Gw2ebNJI3fibm8kwguF/l/9fOEr6Bie4uHIpCGzTe3HBYj4u8X2sIcktNVzJ?= =?us-ascii?Q?zePIgqZRzmCGWotd/O8c2EQnM0k7lwbEGXK0C1jhNkl6gOA6lyF8RnQ2+To7?= =?us-ascii?Q?+bhJ7646/WyGWMz7M3LZ6rs2c1xQVtvQbSnJ81f/SsZ+YVa/WA41u1nlaGC6?= =?us-ascii?Q?JKAtGUhTVCNpuOlHddhfoaPVyii2jqT4hO1mdPOXvqfHNlD08CV4dW5DlneT?= =?us-ascii?Q?2fv6Tbn3xTbEyp6DrqPfzaJDJTQsjne5d3m1ZalkmQm7c64aCtIGlDlJX8Tk?= =?us-ascii?Q?5GlLhYAW+pqGU+5YGzBiPrupFk9wbzLBnXaxWD2D3RSr9kpVjgc4MNwgTSSe?= =?us-ascii?Q?GwozNhJ95P0f3H0WJMJvp+Y44qwXuhaO4VGGXypNAsnxENzJH/GnsdyzFfMo?= =?us-ascii?Q?9ecX2qcrgUFSWsh16dPkjxeXvS44tGhoYgCjsYNWUkMr3/hoCN46ECx2M+7a?= =?us-ascii?Q?7CtO//D+zkN1EuEmTH5tQioKHUfKBtKBbaDc5mOeP2wwvkeEyf0RZIJvj70e?= =?us-ascii?Q?cW2YFm8lvgW4BGTxtVUpGP6Q?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8e2b0e19-fddd-4631-c96f-08d97c66f22f X-MS-Exchange-CrossTenant-AuthSource: SN6PR12MB2718.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2021 18:46:24.2701 (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: m1d7buFvO6N3sRqzrIFVDxA1+vDXo7VAl1db8hEcwqMCWSDGzJCZrjOti/V1l0P3bokoL86Uki2lppg4RTs4hg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR12MB4512 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3275 An SEV-SNP guest requires that private memory (aka pages mapped encrypted) must be validated before being accessed. The validation process consist of the following sequence: 1) Set the memory encryption attribute in the page table (aka C-bit). Note: If the processor is in non-PAE mode, then all the memory accesses are considered private. 2) Add the memory range as private in the RMP table. This can be performed using the Page State Change VMGEXIT defined in the GHCB specification. 3) Use the PVALIDATE instruction to set the Validated Bit in the RMP table. During the guest creation time, the VMM encrypts the OVMF_CODE.fd using the SEV-SNP firmware provided LAUNCH_UPDATE_DATA command. In addition to encrypting the content, the command also validates the memory region. This allows us to execute the code without going through the validation sequence. During execution, the reset vector need to access some data pages (such as page tables, SevESWorkarea, Sec stack). The data pages are accessed as private memory. The data pages are not part of the OVMF_CODE.fd, so they were not validated during the guest creation. There are two approaches we can take to validate the data pages before the access: a) Enhance the OVMF reset vector code to validate the pages as described above (go through step 2 - 3). OR b) Validate the pages during the guest creation time. The SEV firmware provides a command which can be used by the VMM to validate the pages without affecting the measurement of the launch. Approach #b seems much simpler; it does not require any changes to the OVMF reset vector code. Update the OVMF metadata with the list of regions that must be pre-validated by the VMM before the boot. Cc: Michael Roth Cc: James Bottomley Cc: Min Xu Cc: Jiewen Yao Cc: Tom Lendacky Cc: Jordan Justen Cc: Ard Biesheuvel Cc: Erdem Aktas Cc: Gerd Hoffmann Signed-off-by: Brijesh Singh --- OvmfPkg/ResetVector/ResetVector.inf | 7 +++ OvmfPkg/ResetVector/ResetVector.nasmb | 29 +++++++++++++ OvmfPkg/ResetVector/X64/OvmfMetadata.asm | 54 ++++++++++++++++++++++++ 3 files changed, 90 insertions(+) diff --git a/OvmfPkg/ResetVector/ResetVector.inf b/OvmfPkg/ResetVector/Rese= tVector.inf index 4cb81a3233f0..af3cf610a2cd 100644 --- a/OvmfPkg/ResetVector/ResetVector.inf +++ b/OvmfPkg/ResetVector/ResetVector.inf @@ -37,6 +37,8 @@ [Pcd] gUefiCpuPkgTokenSpaceGuid.PcdSevEsWorkAreaBase gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbBase gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbSize + gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbBackupBase + gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbBackupSize gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbPageTableBase gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecGhcbPageTableSize gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase @@ -44,6 +46,11 @@ [Pcd] gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamBase gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPeiTempRamSize gUefiOvmfPkgTokenSpaceGuid.PcdOvmfWorkAreaBase + gUefiOvmfPkgTokenSpaceGuid.PcdOvmfWorkAreaSize + gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageBase + gUefiOvmfPkgTokenSpaceGuid.PcdOvmfLockBoxStorageSize + gEfiMdePkgTokenSpaceGuid.PcdGuidedExtractHandlerTableAddress + gUefiOvmfPkgTokenSpaceGuid.PcdGuidedExtractHandlerTableSize =20 [FixedPcd] gUefiOvmfPkgTokenSpaceGuid.PcdOvmfCpuidBase diff --git a/OvmfPkg/ResetVector/ResetVector.nasmb b/OvmfPkg/ResetVector/Re= setVector.nasmb index 84cb5ae81b66..dc4dde2ff9d2 100644 --- a/OvmfPkg/ResetVector/ResetVector.nasmb +++ b/OvmfPkg/ResetVector/ResetVector.nasmb @@ -70,6 +70,7 @@ %define PT_ADDR(Offset) (FixedPcdGet32 (PcdOvmfSecPageTablesBase) + (Off= set)) =20 %define GHCB_PT_ADDR (FixedPcdGet32 (PcdOvmfSecGhcbPageTableBase)) + %define GHCB_PT_SIZE (FixedPcdGet32 (PcdOvmfSecGhcbPageTableSize)) %define GHCB_BASE (FixedPcdGet32 (PcdOvmfSecGhcbBase)) %define GHCB_SIZE (FixedPcdGet32 (PcdOvmfSecGhcbSize)) %define WORK_AREA_GUEST_TYPE (FixedPcdGet32 (PcdOvmfWorkAreaBase)) @@ -81,6 +82,34 @@ %define SEV_SNP_SECRETS_SIZE (FixedPcdGet32 (PcdOvmfSnpSecretsSize)) %define CPUID_BASE (FixedPcdGet32 (PcdOvmfCpuidBase)) %define CPUID_SIZE (FixedPcdGet32 (PcdOvmfCpuidSize)) + %define SEC_PAGE_TABLE_BASE (FixedPcdGet32 (PcdOvmfSecPageTablesBase)) + %define SEC_PAGE_TABLE_SIZE (FixedPcdGet32 (PcdOvmfSecPageTablesSize)) + %define LOCK_BOX_STORAGE_BASE (FixedPcdGet32 (PcdOvmfLockBoxStorageBase)= ) + %define LOCK_BOX_STORAGE_SIZE (FixedPcdGet32 (PcdOvmfLockBoxStorageSize)= ) + ; + ; The PcdGuidedExtractHandlerTableAddress is a 64-bit PCD. The FixedPcdG= et64() returns + ; a number suffix with 'ULL' (e.g 0x1111ULL). NASM does not like the con= stant ending + ; with anything other than 'h'. So, instead of using the FixedPcdGet64()= , calculate + ; the base address of GuidedExtractHandlerTableBase + ; + %define GUID_EXTRACT_HANDLER_TABLE_BASE (LOCK_BOX_STORAGE_BASE + LOCK_BO= X_STORAGE_SIZE) + %define GUID_EXTRACT_HANDLER_TABLE_SIZE (FixedPcdGet32 (PcdGuidedExtract= HandlerTableSize)) + %define WORK_AREA_BASE (FixedPcdGet32 (PcdOvmfWorkAreaBase)) + %define WORK_AREA_SIZE (FixedPcdGet32 (PcdOvmfWorkAreaSize)) + %define SEC_PEI_TEMP_RAM_BASE (FixedPcdGet32 (PcdOvmfSecPeiTempRamBase)) + %define SEC_PEI_TEMP_RAM_SIZE (FixedPcdGet32 (PcdOvmfSecPeiTempRamSize)) + + ; + ; The PcdOvmfSecGhcbBase reserves two GHCB pages. The first page is used + ; as GHCB shared page and second is used for bookkeeping to support the + ; nested GHCB in SEC phase. The bookkeeping page is mapped private. The = VMM + ; does not need to validate the shared page but it need to validate the + ; bookkeeping page + ; + %define GHCB_SEC_BACKUP_BASE (FixedPcdGet32 (PcdOvmfSecGhcbBackupBase)) + %define GHCB_SEC_BACKUP_SIZE (FixedPcdGet32 (PcdOvmfSecGhcbBackupSize)) + %define GHCB_BOOKKEEPING_BASE (GHCB_BASE + 0x1000) + %define GHCB_BOOKKEEPING_SIZE (GHCB_SIZE - 0x1000) =20 %include "Ia32/Flat32ToFlat64.asm" %include "Ia32/AmdSev.asm" diff --git a/OvmfPkg/ResetVector/X64/OvmfMetadata.asm b/OvmfPkg/ResetVector= /X64/OvmfMetadata.asm index 3f4b017104fc..8df170e8e649 100644 --- a/OvmfPkg/ResetVector/X64/OvmfMetadata.asm +++ b/OvmfPkg/ResetVector/X64/OvmfMetadata.asm @@ -35,6 +35,12 @@ BITS 64 ; AMD SEV-SNP specific sections %define OVMF_SECTION_TYPE_SNP_SECRETS 0x200 =20 +; The section must be validated by the VMM before the boot. +; The section is used for the GHCB memory. The GHCB memory is used as mail= box +; in the TDX guest. This special section is similar to the +; OVMF_SECTION_TYPE_SEC_MEM but its applicable for the SEV guest only. +%define OVMF_SECTION_TYPE_SNP_SEC_MEM 0x201 + ALIGN 16 =20 TIMES (15 - ((OvmfGuidedStructureEnd - OvmfGuidedStructureStart + 15) % 16= )) DB 0 @@ -53,6 +59,48 @@ _Descriptor: DD OVMF_METADATA_VERSION ; Version DD (OvmfGuidedStructureEnd - _Descriptor - 16) / 12 ; Number of sections =20 +; Page table used during SEC +SecPageTable: + DD SEC_PAGE_TABLE_BASE + DD SEC_PAGE_TABLE_SIZE + DD OVMF_SECTION_TYPE_SEC_MEM + +; Lockbox storage +LockBoxStorage: + DD LOCK_BOX_STORAGE_BASE + DD LOCK_BOX_STORAGE_SIZE + DD OVMF_SECTION_TYPE_SEC_MEM + +; Guided Extract Handler Table +ExtractHandlerTable: + DD GUID_EXTRACT_HANDLER_TABLE_BASE + DD GUID_EXTRACT_HANDLER_TABLE_SIZE + DD OVMF_SECTION_TYPE_SEC_MEM + +; GHCB page table +GhcbPageTable: + DD GHCB_PT_ADDR + DD GHCB_PT_SIZE + DD OVMF_SECTION_TYPE_SNP_SEC_MEM + +; GHCB bookkeeping page used in SEC phase +GhcbBookkeeping: + DD GHCB_BOOKKEEPING_BASE + DD GHCB_BOOKKEEPING_SIZE + DD OVMF_SECTION_TYPE_SNP_SEC_MEM + +; Confidential computing work area +WorkArea: + DD WORK_AREA_BASE + DD WORK_AREA_SIZE + DD OVMF_SECTION_TYPE_SEC_MEM + +; GHCB backup page used in SEC +GhcbBackup: + DD GHCB_SEC_BACKUP_BASE + DD GHCB_SEC_BACKUP_SIZE + DD OVMF_SECTION_TYPE_SNP_SEC_MEM + ; SEV-SNP Secrets page SevSnpSecrets: DD SEV_SNP_SECRETS_BASE @@ -65,5 +113,11 @@ CpuidSec: DD CPUID_SIZE DD OVMF_SECTION_TYPE_CPUID =20 +; Temporary RAM used in SEC phase +SecPeiTempRam: + DD SEC_PEI_TEMP_RAM_BASE + DD SEC_PEI_TEMP_RAM_SIZE + DD OVMF_SECTION_TYPE_SEC_MEM + OvmfGuidedStructureEnd: ALIGN 16 --=20 2.25.1