qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hard limit on 256 IRQs in qtest


From: Thomas Huth
Subject: Re: Hard limit on 256 IRQs in qtest
Date: Fri, 22 Jul 2022 11:26:33 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

On 21/07/2022 18.17, Roque Arcudia Hernandez wrote:
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?

I guess it should be fine. Just not that you have to adjust the same #define in softmmu/qtest.c, too.

 Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]