OvmfPkg/QemuKernelLoaderFsDxe: allow longer file names

QEMU_FW_CFG_FNAME_SIZE is 56. 'etc/boot/' prefix is minus 9.  Add one
for the terminating '\0'.  Effective max size is 48.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Gerd Hoffmann 2025-01-16 15:42:13 +01:00 committed by Ard Biesheuvel
parent 20df7c42bd
commit adf385ecab

View File

@ -33,7 +33,7 @@
// Static data that hosts the fw_cfg blobs and serves file requests. // Static data that hosts the fw_cfg blobs and serves file requests.
// //
typedef struct { typedef struct {
CHAR16 Name[8]; CHAR16 Name[48];
struct { struct {
FIRMWARE_CONFIG_ITEM SizeKey; FIRMWARE_CONFIG_ITEM SizeKey;
FIRMWARE_CONFIG_ITEM DataKey; FIRMWARE_CONFIG_ITEM DataKey;
@ -43,7 +43,7 @@ typedef struct {
typedef struct KERNEL_BLOB KERNEL_BLOB; typedef struct KERNEL_BLOB KERNEL_BLOB;
struct KERNEL_BLOB { struct KERNEL_BLOB {
CHAR16 Name[8]; CHAR16 Name[48];
UINT32 Size; UINT32 Size;
UINT8 *Data; UINT8 *Data;
KERNEL_BLOB *Next; KERNEL_BLOB *Next;