OvmfPkg/igvm: add IgvmData struct header + guid

Add header file with struct and defines for additional IGVM data HOBs.
Also add the GUID for the HOB.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2025-09-10 14:02:05 +02:00 committed by mergify[bot]
parent 5e8db785e4
commit f52a46375b
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,29 @@
/** @file
IGVM Data hobs
Copyright (c) 2025, Red Hat. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __IGVM_DATA_H__
#define __IGVM_DATA_H__
/* secure boot databases */
#define EFI_IGVM_DATA_TYPE_PK 0x100
#define EFI_IGVM_DATA_TYPE_KEK 0x101
#define EFI_IGVM_DATA_TYPE_DB 0x102
#define EFI_IGVM_DATA_TYPE_DBX 0x103
/* efi binaries for direct kernel boot */
#define EFI_IGVM_DATA_TYPE_SHIM 0x200
#define EFI_IGVM_DATA_TYPE_KERNEL 0x201
typedef struct {
UINT64 Address;
UINT64 Length;
UINT32 DataType;
UINT32 DataFlags;
} EFI_IGVM_DATA_HOB;
#endif /* __IGVM_DATA_H__ */

View file

@ -188,6 +188,7 @@
gRtcRegisterBaseAddressHobGuid = {0x40435d97, 0xeb37, 0x4a4b, {0x7f, 0xad, 0xb7, 0xed, 0x72, 0xa1, 0x43, 0xc5}}
gOvmfFwCfgInfoHobGuid = {0xa291ce0e, 0xdc09, 0x11ee, {0x9e, 0xdb, 0x73, 0x49, 0xd7, 0x92, 0xaf, 0x51}}
gMemDebugLogHobGuid = {0x95305139, 0xb20f, 0x4723, {0x84, 0x25, 0x62, 0x7c, 0x88, 0x8f, 0xf1, 0x21}}
gEfiIgvmDataHobGuid = {0x3dd177ff, 0xb632, 0x4e25, {0xbe, 0xf3, 0x06, 0x50, 0x63, 0xd5, 0x5f, 0xc4}}
[Ppis]
# PPI whose presence in the PPI database signals that the TPM base address