From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org
Cc: Fabiano Rosas <farosas@suse.de>,
Laurent Vivier <lvivier@redhat.com>,
Paolo Bonzini <pbonzini@redhat.com>,
Roque Arcudia Hernandez <roqueh@google.com>
Subject: Re: [PATCH 1/3] tests/qtest: Add qtest_system_reset() utility function
Date: Mon, 18 Nov 2024 11:30:35 +0100 [thread overview]
Message-ID: <1738dcc8-630b-48ff-965e-d73b766f2ea6@linaro.org> (raw)
In-Reply-To: <20241115165041.1148095-2-peter.maydell@linaro.org>
On 15/11/24 16:50, Peter Maydell wrote:
> We have several qtest tests which want to reset the QEMU under test
> during the course of testing something. They currently generally
> have their own functions to do this, which work by sending a
> "system_reset" QMP command. However, "system_reset" only requests a
> reset, and many of the tests which send the QMP command forget the
> "and then wait for the QMP RESET event" part which is needed to
> ensure that the reset has completed.
>
> Provide a qtest_system_reset() function in libqtest so that
> we don't need to reimplement this in multiple different tests.
>
> A few tests (for example device hotplug related tests) want to
> perform the reset command and then wait for some other event that is
> produced during the reset sequence. For them we provide
> qtest_system_reset_nowait() so they can clearly indicate that they
> are deliberately not waiting for the RESET event.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> tests/qtest/libqtest.h | 25 +++++++++++++++++++++++++
> tests/qtest/libqtest.c | 16 ++++++++++++++++
> 2 files changed, 41 insertions(+)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
next prev parent reply other threads:[~2024-11-18 10:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-15 16:50 [PATCH 0/3] qtest: Provide and use function for doing system reset Peter Maydell
2024-11-15 16:50 ` [PATCH 1/3] tests/qtest: Add qtest_system_reset() utility function Peter Maydell
2024-11-18 10:30 ` Philippe Mathieu-Daudé [this message]
2024-11-15 16:50 ` [PATCH 2/3] tests/qtest: Use qtest_system_reset() instead of open-coded versions Peter Maydell
2024-11-18 10:29 ` Philippe Mathieu-Daudé
2024-11-15 16:50 ` [PATCH 3/3] tests/qtest: Use qtest_system_reset_nowait() where appropriate Peter Maydell
2024-11-22 13:00 ` Fabiano Rosas
2024-11-22 13:07 ` [PATCH 0/3] qtest: Provide and use function for doing system reset Fabiano Rosas
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=1738dcc8-630b-48ff-965e-d73b766f2ea6@linaro.org \
--to=philmd@linaro.org \
--cc=farosas@suse.de \
--cc=lvivier@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=roqueh@google.com \
/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).