qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Hard limit on 256 IRQs in qtest
@ 2022-07-21 16:17 Roque Arcudia Hernandez
  2022-07-22  9:26 ` Thomas Huth
  0 siblings, 1 reply; 2+ messages in thread
From: Roque Arcudia Hernandez @ 2022-07-21 16:17 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 615 bytes --]

Hello,

To write a qtest for an SoC using ARM GICv3 as interrupt controller the
qtest infrastructure is short on IRQs.

File tests/qtest/libqtest.c defines:

#define MAX_IRQ 256

Which is the number of elements in the array that is used to keep track of
the value of the irq gpio:

    bool irq_level[MAX_IRQ];

The GICv3 can take up to 1020. The SoC we are trying to emulate uses more
than the current 256 limit we can observe at the GIC input. If we focus
just on the external interrupt range the GIC would need 1020 - 32 = 988
IRQs. Will it be OK to make this change to the qtest infrastructure?

Thanks,

Roque

[-- Attachment #2: Type: text/html, Size: 3292 bytes --]

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

end of thread, other threads:[~2022-07-22  9:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-21 16:17 Hard limit on 256 IRQs in qtest Roque Arcudia Hernandez
2022-07-22  9:26 ` Thomas Huth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).