Bug 16259

Summary: AB-INT: boot hang in qemu (after pci enumeration)
Product: [QA/Testing] Runtime Testing Reporter: Mathieu Dubois-Briand <mathieu.dubois-briand>
Component: oeqa/runtimeAssignee: Unassigned <unassigned>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: paul, Quan.Sun, randy.macleod
Version: unspecified   
Target Milestone: 6.1 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Mathieu Dubois-Briand 2026-04-21 07:08:18 UTC
Yet another qemu boot hang. 

Last lines of the boot log:

[    1.974114] PCI host bridge to bus 0000:00
[    1.974608] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7 window]
[    1.975332] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff window]
[    1.975973] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[    1.976863] pci_bus 0000:00: root bus resource [mem 0x10000000-0xafffffff window]
[    1.977278] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xfebfffff window]
[    1.977307] pci_bus 0000:00: root bus resource [mem 0x100000000-0x8ffffffff window]
[    1.979395] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.982250] pci 0000:00:00.0: [8086:29c0] type 00 class 0x060000 conventional PCI endpoint
[    1.987700] pci 0000:00:01.0: [1234:1111] type 00 class 0x030000 conventional PCI endpoint
[    1.989569] pci 0000:00:01.0: BAR 0 [mem 0xfd000000-0xfdffffff pref]
[    1.991350] pci 0000:00:01.0: BAR 2 [mem 0xfebd0000-0xfebd0fff]
[    1.991909] pci 0000:00:01.0: ROM [mem 0xfebc0000-0xfebcffff pref]
[    1.992278] pci 0000:00:01.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
[    1.994440] pci 0000:00:02.0: [1af4:1000] type 00 class 0x020000 conventional PCI endpoint
[    1.997423] pci 0000:00:02.0: BAR 0 [io  0xc0c0-0xc0df]
[    1.998150] pci 0000:00:02.0: BAR 1 [mem 0xfebd1000-0xfebd1fff]
[    1.998364] pci 0000:00:02.0: BAR 4 [mem 0xfe000000-0xfe003fff 64bit pref]
[    1.999306] pci 0000:00:02.0: ROM [mem 0xfeb80000-0xfebbffff pref]
[    2.000278] pci 0000:00:03.0: [1af4:1005] type 00 class 0x00ff00 conventional PCI endpoint

I also note these lines on the host:
runqemu - ERROR - Failed to run qemu: qemu-system-x86_64: -qmp unix:./.p9ub96ua,server,wait: info: QEMU waiting for connection on: disconnected:unix:./.p9ub96ua,server=on
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=01h].ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=01h].ECX.tsc-deadline [bit 24]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=07h,ecx=00h].EBX.hle [bit 4]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=07h,ecx=00h].EBX.invpcid [bit 10]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=07h,ecx=00h].EBX.rtm [bit 11]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=0Dh,ecx=01h].EAX.xsavec [bit 1]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=01h].ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=01h].ECX.tsc-deadline [bit 24]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=07h,ecx=00h].EBX.hle [bit 4]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=07h,ecx=00h].EBX.invpcid [bit 10]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=07h,ecx=00h].EBX.rtm [bit 11]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=0Dh,ecx=01h].EAX.xsavec [bit 1]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=01h].ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=01h].ECX.tsc-deadline [bit 24]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=07h,ecx=00h].EBX.hle [bit 4]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=07h,ecx=00h].EBX.invpcid [bit 10]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=07h,ecx=00h].EBX.rtm [bit 11]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=0Dh,ecx=01h].EAX.xsavec [bit 1]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=01h].ECX.pcid [bit 17]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=01h].ECX.tsc-deadline [bit 24]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=07h,ecx=00h].EBX.hle [bit 4]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=07h,ecx=00h].EBX.invpcid [bit 10]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=07h,ecx=00h].EBX.rtm [bit 11]
qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID[eax=0Dh,ecx=01h].EAX.xsavec [bit 1]
qemu-system-x86_64: ../sources/qemu-10.2.0/system/physmem.c:760: iotlb_to_section: Assertion `section_index < d->map.sections_nb' failed.

It looks a bit like https://bugzilla.yoctoproject.org/show_bug.cgi?id=16150, but a little bit earlier and on x86. So probably not related.
Comment 1 Mathieu Dubois-Briand 2026-04-21 07:08:55 UTC
qemux86-64-tc fedora43-vk-2 mathieu/master-next completed at 2026-04-19 21:24:49+00:00
https://valkyrie.yocto.io/pub/non-release/20260419-85/testresults/qemux86-64-tc/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/66/builds/3689/steps/13/logs/stdio
Comment 2 Randy MacLeod 2026-04-23 14:44:45 UTC
Of the hanging qemu bugs, this one is more important.
Comment 3 Quan Sun 2026-04-30 02:13:12 UTC
The following commit on QEMU git repo should solve the issue described in this bug (v11.0.0 of QEMU contains this commit):

https://gitlab.com/qemu-project/qemu/-/commit/854cd16e318eed12de2995014b28d9f374c64bf7

Note that the above commit mainly targets on ARM/RISC-V, but the commit eliminates iotlb_to_section() and does the lookup based on CPUTLBEntryFull and therefore should work here for X86 as well, and it may even be helpful to deal with some other QEMU boot issues seen before also.
Comment 4 Paul Barker 2026-05-14 15:23:07 UTC
This should be resolved now the above qemu fix has been backported to our master branch.

https://git.openembedded.org/openembedded-core/commit/?id=1b09f50c4e607bb6f2b120fe3bf0141bac46a078