From: "Alex Bennée" <alex.bennee@linaro.org>
To: "Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: qemu-devel@nongnu.org,
Elena Ufimtseva <elena.ufimtseva@oracle.com>,
Jagannathan Raman <jag.raman@oracle.com>,
John G Johnson <john.g.johnson@oracle.com>,
Cleber Rosa <crosa@redhat.com>,
Wainer dos Santos Moschetta <wainersm@redhat.com>,
Beraldo Leal <bleal@redhat.com>
Subject: Re: [RFC PATCH] tests/avocado: probe for multi-process support before running test
Date: Tue, 21 Mar 2023 18:19:06 +0000 [thread overview]
Message-ID: <871qli6k7d.fsf@linaro.org> (raw)
In-Reply-To: <e072cbd3-f497-b384-ab46-16c88c70a12a@linaro.org>
Philippe Mathieu-Daudé <philmd@linaro.org> writes:
> On 21/3/23 12:17, Alex Bennée wrote:
>> A recent attempt to let avocado run more tests on the CentOS stream
>> build failed because there was no gating on the multiprocess feature.
>> Like missing accelerators avocado should gracefully skip when the
>> feature is not enabled.
>> In this case we use the existence of the proxy device as a proxy for
>> multi-process support.
>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>> Cc: Elena Ufimtseva <elena.ufimtseva@oracle.com>
>> Cc: Jagannathan Raman <jag.raman@oracle.com>
>> Cc: John G Johnson <john.g.johnson@oracle.com>
>> ---
>> tests/avocado/avocado_qemu/__init__.py | 10 ++++++++++
>> tests/avocado/multiprocess.py | 1 +
>> 2 files changed, 11 insertions(+)
>
>
>> + """
>> + Test for the presence of the x-pci-proxy-dev which is required
>> + to support multiprocess.
>> + """
>> + devhelp = run_cmd([self.qemu_bin,
>> + '-M', 'none', '-device', 'help'])[0];
>> + if devhelp.find('x-pci-proxy-dev') < 0:
>> + self.cancel('no support for multiprocess device emulation')
>
> FYI a more generic alternative to this method:
> https://lore.kernel.org/qemu-devel/20200129212345.20547-14-philmd@redhat.com/
>
> But yours just works :)
For now I want to keep it simple. We should replace it with yours once
we get a chance. Are you happy for a r-b?
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
next prev parent reply other threads:[~2023-03-21 18:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-21 11:17 [RFC PATCH] tests/avocado: probe for multi-process support before running test Alex Bennée
2023-03-21 13:38 ` Philippe Mathieu-Daudé
2023-03-21 18:19 ` Alex Bennée [this message]
2023-03-22 8:40 ` Philippe Mathieu-Daudé
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=871qli6k7d.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=bleal@redhat.com \
--cc=crosa@redhat.com \
--cc=elena.ufimtseva@oracle.com \
--cc=jag.raman@oracle.com \
--cc=john.g.johnson@oracle.com \
--cc=philmd@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=wainersm@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.