Peter Maydell <[email protected]> writes: > 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(-)
Queued, thanks.
