Hello Gerd,
On the current edk2/master, when running on AMD EPYC hosts, I see
intermittent guest crashes and hangs during repeated reboot stress
testing (25–50 consecutive reboots). The guest is configured with
minimal resources (1 vCPU, 512 MiB RAM).
Important observation: the issue only occurs when the QEMU command line
includes both -kernel and -append. It does not happen when booting
normally from disk.
Upstream master as well as latest stable edk2-stable202511 has this issue.
I observed guest crashing with either one of of below traces every time:
1.
```
ProtectUefiImageCommon - 0x1F0C1BC0
- 0x000000001F0A8000 - 0x0000000000002F00
!!!!!!!! Image Section Alignment(0x40) does not match Required
Alignment (0x1000) !!!!!!!!
ProtectUefiImage failed to create image properties record
InstallProtocolInterface: 26BACCB3-6F42-11D4-BCE7-0080C73C8881 1F0AAC60
Loading driver 128FB770-5E79-4176-9E51-9BB268A17DD1
None of Tcg2Protocol/CcMeasurementProtocol is installed.
InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 1F0C11C0
Loading driver at 0x0001F067000 EntryPoint=0x0001F06E519
PciHostBridgeDxe.efi
InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 1F0C1718
ProtectUefiImageCommon - 0x1F0C11C0
- 0x000000001F067000 - 0x0000000000009F00
!!!!!!!! Image Section Alignment(0x40) does not match Required
Alignment (0x1000) !!!!!!!!
ProtectUefiImage failed to create image properties record
Select Item: 0x0
FW CFG Signature: 0x554D4551
Select Item: 0x1
FW CFG Revision: 0x3
QemuFwCfg interface (DMA) is supported.
Select Item: 0x19
Select Item: 0x19
PciHostBridgeUtilityInitRootBridge: populated root bus 0, with room for
255 subordinate bus(es)
RootBridge: PciRoot(0x0)
Support/Attr: 70069 / 70069
DmaAbove4G: No
NoExtConfSpace: No
AllocAttr: 3 (CombineMemPMem Mem64Decode)
Bus: 0 - FF Translation=0
Io: 6000 - FFFF Translation=0
Mem: 80000000 - DFFFFFFF Translation=0
MemAbove4G: F1AFD81800000000 - F1AFD81FFFFFFFFF Translation=0
PMem: FFFFFFFFFFFFFFFF - 0 Translation=0
PMemAbove4G: FFFFFFFFFFFFFFFF - 0 Translation=0
ASSERT_EFI_ERROR (Status = Not Found)
ASSERT [PciHostBridgeDxe] PciHostBridge.c(389):
!(((RETURN_STATUS)(CheckStatus)) >= 0x8000000000000000ULL)
```
2.
```
2025-12-02 17:17:33: Register PPI Notify:
EE16160A-E8BE-47A6-820A-C6900DB0250A
2025-12-02 17:17:33: Select Item: 0x19
2025-12-02 17:17:33: Select Item: 0x19
2025-12-02 17:17:33: Reserved variable store memory: 0x1001FC000; size:
528kb
2025-12-02 17:17:33: Temp Stack : BaseAddress=0x81A000 Length=0x6000
2025-12-02 17:17:33: Temp Heap : BaseAddress=0x814000 Length=0x6000
2025-12-02 17:17:33: Total temporary memory: 49152 bytes.
2025-12-02 17:17:33: temporary memory stack ever used: 24576 bytes.
2025-12-02 17:17:33: temporary memory heap used for HobList: 9184 bytes.
2025-12-02 17:17:33: temporary memory heap occupied by memory pages: 0
bytes.
2025-12-02 17:17:33: Memory Allocation 0x0000000A 0x280000 - 0x307FFF
2025-12-02 17:17:33: Memory Allocation 0x0000000A 0x814000 - 0x81FFFF
2025-12-02 17:17:33: Memory Allocation 0x0000000A 0x807000 - 0x807FFF
2025-12-02 17:17:33: Memory Allocation 0x0000000A 0x800000 - 0x805FFF
2025-12-02 17:17:33: Memory Allocation 0x0000000A 0x806000 - 0x806FFF
2025-12-02 17:17:33: Memory Allocation 0x0000000A 0x80B000 - 0x80BFFF
2025-12-02 17:17:33: Memory Allocation 0x0000000A 0x820000 - 0x82FFFF
2025-12-02 17:17:33: Memory Allocation 0x0000000A 0x830000 - 0x8FFFFF
2025-12-02 17:17:33: Memory Allocation 0x00000004 0x900000 - 0x177FFFF
2025-12-02 17:17:33: Memory Allocation 0x00000000 0xE0000000 - 0xEFFFFFFF
2025-12-02 17:17:33: Memory Allocation 0x00000006 0x1001FC000 - 0x10027FFFF
2025-12-02 17:17:33: Old Stack size 24576, New stack size 131072
2025-12-02 17:17:33: Stack Hob: BaseAddress=0xFC274000 Length=0x20000
2025-12-02 17:17:33: Heap Offset = 0xFBA80000 Stack Offset = 0xFBA74000
2025-12-02 17:17:33: TemporaryRamMigration(0x814000, 0xFC28E000, 0xC000)
--> stuck here
```
When I bisected this issue, it led to below commit as culprit:
commit 5e8db785e4732891a4e96d2fbc83079b3e4262cc
Author: Gerd Hoffmann <[email protected]>
Date: Fri Aug 8 14:23:34 2025 +0200
OvmfPkg/igvm: add igvm memory map support.
In case a IGVM memory map is present in the parameter area use that
when detecting guest memory.
Signed-off-by: Gerd Hoffmann <[email protected]>
OvmfPkg/Include/Library/PlatformInitLib.h | 19 ++++
OvmfPkg/Library/PlatformInitLib/Igvm.c | 110
+++++++++++++++++++++
OvmfPkg/Library/PlatformInitLib/MemDetect.c | 9 +-
.../Library/PlatformInitLib/PlatformInitLib.inf | 3 +
OvmfPkg/ResetVector/X64/IgvmMetadata.asm | 1 +
5 files changed, 137 insertions(+), 5 deletions(-)
create mode 100644 OvmfPkg/Library/PlatformInitLib/Igvm.c
Reverting this commit (or using the previous commit) makes the issue
disappear.
Qemu commandline which I used:
qemu-system-x86_64 \
-name 'vm1' \
-blockdev
node-name=file_ovmf_code,driver=file,filename=OVMF_CODE.fd,auto-read-only=on,discard=unmap
\
-blockdev
node-name=drive_ovmf_code,driver=raw,read-only=on,file=file_ovmf_code \
-blockdev
node-name=file_ovmf_vars,driver=file,filename=OVMF_VARS.fd,auto-read-only=on,discard=unmap
\
-blockdev
node-name=drive_ovmf_vars,driver=raw,read-only=off,file=file_ovmf_vars \
-machine
q35,pflash0=drive_ovmf_code,pflash1=drive_ovmf_vars,memory-backend=mem-machine_mem
\
-m 512 \
-object memory-backend-ram,size=512M,id=mem-machine_mem \
-smp 1,maxcpus=1,cores=1,threads=1,dies=1,sockets=1 \
-cpu host \
-kernel 'bzImage' \
-append 'root=/dev/vda1 rw console=ttyS0,115200n8
earlyprintk=ttyS0,115200 net.ifnames=0 biosdevname=0 movable_node' \
-blockdev node-name=file_image1,driver=file,filename=24.04-server.qcow2 \
-blockdev node-name=drive_image1,driver=qcow2,file=file_image1 \
-device pcie-root-port,id=pcie-root-port-1,port=0x1,bus=pcie.0,chassis=1 \
-device
virtio-blk-pci,id=image1,drive=drive_image1,bus=pcie-root-port-1,addr=0x0,disable-legacy=on,iommu_platform=on
\
-nographic \
-boot menu=off,order=cdn,once=c,strict=off \
-enable-kvm
If the issue is fixed please add tag "Reported-by: Srikanth Aithal
<[email protected]>"
Thank you
Srikanth Aithal
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#121711): https://edk2.groups.io/g/devel/message/121711
Mute This Topic: https://groups.io/mt/116628156/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-