All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] qtest: Remove 256 IRQ limit on irq intercepts
@ 2026-10-26 12:56 Peter Maydell
  2026-10-26 12:56 ` [PATCH 1/3] system/qtest: Avoid fixed-size irq_levels array for IRQ intercept Peter Maydell
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Peter Maydell @ 2026-10-26 12:56 UTC (permalink / raw)
  To: qemu-devel; +Cc: Fabiano Rosas, Laurent Vivier, Paolo Bonzini

Currently both system/qtest.c and libqtest have a 256 IRQ limit
on the size of an irq_intercept_in. If you try it with more then
qtest.c will overrun its array, and libqtest will trip an assert.
We have some real devices in board models that use more inbound
IRQs than this (e.g. the GIC in the Arm virt board).

This series removes both the fixed-sized arrays, so there's
no artificial limit on how many GPIO lines we can cope with.
I also fix in patch 2 a bug I noticed while doing this, where
we don't check the GPIO group name for irq_intercept_in, so
we apply the intercept to every input GPIO group the device
has rather than only to the unnamed GPIO inputs.

I haven't bothered to cc:stable on these because we don't
trip over the limit for any of our existing qtests, though
I don't anticipate there being any issues with the backport.

thanks
-- PMM

Peter Maydell (3):
  system/qtest: Avoid fixed-size irq_levels array for IRQ intercept
  system/qtest: Check ngl->name for irq_intercept_in
  tests/qtest/libqtest: Use a GArray for QTestState::irq_level[]

 system/qtest.c         | 47 +++++++++++++++++++++++++++++-------------
 tests/qtest/libqtest.c | 28 ++++++++++++-------------
 2 files changed, 47 insertions(+), 28 deletions(-)

-- 
2.43.0



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-10-27 12:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-26 12:56 [PATCH 0/3] qtest: Remove 256 IRQ limit on irq intercepts Peter Maydell
2026-10-26 12:56 ` [PATCH 1/3] system/qtest: Avoid fixed-size irq_levels array for IRQ intercept Peter Maydell
2026-10-27 12:21   ` Fabiano Rosas
2026-10-26 12:56 ` [PATCH 2/3] system/qtest: Check ngl->name for irq_intercept_in Peter Maydell
2026-10-27 12:24   ` Fabiano Rosas
2026-10-26 12:56 ` [PATCH 3/3] tests/qtest/libqtest: Use a GArray for QTestState::irq_level[] Peter Maydell
2026-10-27 12:30   ` Fabiano Rosas
2026-10-27 12:30 ` [PATCH 0/3] qtest: Remove 256 IRQ limit on irq intercepts Fabiano Rosas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.