qemu-devel
[Top][All Lists]
Advanced

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

Re: QTest framework does not capture toggled irq line


From: Gustavo Romero
Subject: Re: QTest framework does not capture toggled irq line
Date: Sat, 11 Nov 2023 23:55:21 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

On 11/10/23 3:16 AM, Thomas Huth wrote:
On 10/11/2023 04.40, Gustavo Romero wrote:
Hi folks,

I'm writing a test for a device that has one IRQ output line
that is toggled (raised then lowered) by the device to trigger
a CPU interrupt.

Afaics the QTest framework does not provide a way to capture
when an output line is raised because the API functions, e.g.
qtest_get_irq(), read the current state of the intercepted
IRQ lines, which is already low when the function is called,
since the line is toggled by the device.

I'd like to introduce a new API function to address this case,
called qtest_get_irq_trigger_counter():
...
This change addresses the current QTest limitation. Is it acceptable?

  Hi Gustavo,

that sounds reasonable to me.

Thanks, Thomas! I've posted the patch here:

https://lists.nongnu.org/archive/html/qemu-devel/2023-11/msg02867.html


Cheers,
Gustavo



reply via email to

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