From: Thomas Huth <thuth@redhat.com>
To: Gustavo Romero <gustavo.romero@linaro.org>,
lvivier@redhat.com, pbonzini@redhat.com
Cc: qemu-devel@nongnu.org, philmd@linaro.org
Subject: Re: QTest framework does not capture toggled irq line
Date: Fri, 10 Nov 2023 07:16:58 +0100 [thread overview]
Message-ID: <41fc01bc-9883-48b3-8652-c526745eda90@redhat.com> (raw)
In-Reply-To: <4daf0424-b767-b5d9-bacb-0fe879c92963@linaro.org>
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
next prev parent reply other threads:[~2023-11-10 6:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-10 3:40 QTest framework does not capture toggled irq line Gustavo Romero
2023-11-10 6:16 ` Thomas Huth [this message]
2023-11-12 2:55 ` Gustavo Romero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41fc01bc-9883-48b3-8652-c526745eda90@redhat.com \
--to=thuth@redhat.com \
--cc=gustavo.romero@linaro.org \
--cc=lvivier@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).