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: Thomas Huth
Subject: Re: QTest framework does not capture toggled irq line
Date: Fri, 10 Nov 2023 07:16:58 +0100
User-agent: Mozilla Thunderbird

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.

 Thomas




reply via email to

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