On 12/9/19 12:45 PM, Paolo Bonzini wrote: > On 09/12/19 18:33, Thomas Huth wrote: >>> It works for me though: >>> >>> $ /usr/bin/qemu-system-x86_64 -nodefaults -device pc-testdev -device >>> isa-debug-exit,iobase=0xf4,iosize=0x4 -vnc none -serial stdio -device >>> pci-testdev -machine accel=tcg -kernel x86/ioapic.flat >> You have to run the test with "-smp 4" (like in x86/unittests.cfg), then >> it hangs. > The problem was actually that I hadn't recompiled x86/ioapic.flat. Now > I can see the hang even with "-machine > accel=kvm,kernel_irqchip=off|split", I'll take a look if Nitesh doesn't > beat me. > > Paolo I just started looking into the issue and the following is my understanding so far. - The issue has something to do with test_ioapic_self_reconfigure() failure when ran with kernel_irqchip=split. If I remove this particular test or move it below my set of tests then both physical and logical destination mode test pass normally without any hang. My understanding is that the failure of test_ioapic_self_reconfigure() leads to an uncleaned interrupt state which prevents the processing of the next request (physical and logical destination mode test). I still don't have a justification for why test_ioapic_self_reconfigure is failing with kernel_irqchip=split. I will have to investigate that. -- Nitesh