1 ;-----------------------------------------------------------------------------
3 ; OVMF metadata for the AMD SEV confidential computing guests
5 ; Copyright (c) 2021, AMD Inc. All rights reserved.<BR>
7 ; SPDX-License-Identifier: BSD-2-Clause-Patent
8 ;-----------------------------------------------------------------------------
12 %define OVMF_SEV_METADATA_VERSION 1
14 ; The section must be accepted or validated by the VMM before the boot
15 %define OVMF_SECTION_TYPE_SNP_SEC_MEM 0x1
17 ; AMD SEV-SNP specific sections
18 %define OVMF_SECTION_TYPE_SNP_SECRETS 0x2
22 TIMES (15 - ((OvmfSevGuidedStructureEnd - OvmfSevGuidedStructureStart + 15) % 16)) DB 0
24 OvmfSevGuidedStructureStart:
26 ; OvmfSev metadata descriptor
31 DB 'A','S','E','V' ; Signature
32 DD OvmfSevGuidedStructureEnd - _DescriptorSev ; Length
33 DD OVMF_SEV_METADATA_VERSION ; Version
34 DD (OvmfSevGuidedStructureEnd - _DescriptorSev - 16) / 12 ; Number of sections
36 ; SEV-SNP Secrets page
38 DD SEV_SNP_SECRETS_BASE
39 DD SEV_SNP_SECRETS_SIZE
40 DD OVMF_SECTION_TYPE_SNP_SECRETS
42 OvmfSevGuidedStructureEnd: