All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <marcandre.lureau@redhat.com>
To: Cleber Rosa <crosa@redhat.com>
Cc: "Alex Bennée" <alex.bennee@linaro.org>,
	"Hoffmann, Gerd" <kraxel@redhat.com>,
	qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [PATCH v2 20/20] tests: add some virtio-gpu & vhost-user-gpu acceptance test
Date: Wed, 17 Feb 2021 12:27:40 +0400	[thread overview]
Message-ID: <CAMxuvayaijdaS_Ba8N+w02Q3xV5JZJ=hG1TysuPOLtyuZ2Cyrw@mail.gmail.com> (raw)
In-Reply-To: <20210216174319.GA168121@localhost.localdomain>

[-- Attachment #1: Type: text/plain, Size: 3852 bytes --]

Hi

On Tue, Feb 16, 2021 at 9:43 PM Cleber Rosa <crosa@redhat.com> wrote:

> On Tue, Feb 16, 2021 at 04:34:06PM +0000, Alex Bennée wrote:
> >
> > marcandre.lureau@redhat.com writes:
> >
> > > From: Marc-André Lureau <marcandre.lureau@redhat.com>
> > >
> > > This will check virtio/vhost-user-vga & virgl are correctly initialized
> > > by the Linux kernel on an egl-headless display.
> > >
> > > Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> > > ---
> > >  tests/acceptance/virtio-gpu.py | 161 +++++++++++++++++++++++++++++++++
> > >  1 file changed, 161 insertions(+)
> > >  create mode 100644 tests/acceptance/virtio-gpu.py
> >
> > This failed when I got to master:
> >
> >   2021-02-16 14:33:46,266 qmp              L0255 DEBUG| >>> {'execute':
> 'qmp_capabilities'}
> >   2021-02-16 14:33:46,441 machine          L0385 DEBUG| Error launching
> VM
> >   2021-02-16 14:33:46,441 machine          L0387 DEBUG| Command:
> './qemu-system-x86_64 -display none -vga none -chardev
> socket,id=mon,path=/var/tmp/avo_qemu_sock_xy9ndjnm/qemu
> >   -29492-monitor.sock -mon chardev=mon,mode=control -chardev
> socket,id=console,path=/var/tmp/avo_qemu_sock_xy9ndjnm/qemu-29492-console.sock,server=on,wait=off
> -serial chardev:
> >   console -cpu host -m 2G -machine pc,accel=kvm -device
> virtio-vga,virgl=on -display egl-headless -kernel
> /home/alex.bennee/avocado/data/cache/by_location/892ae21f3ae7d04994d8
> >   1e1c0bf204ecebe555bb/vmlinuz -initrd
> /home/alex.bennee/avocado/data/cache/by_location/892ae21f3ae7d04994d81e1c0bf204ecebe555bb/initrd.img
> -append printk.time=0 console=ttyS0
> >    rdinit=/bin/bash'
> >   2021-02-16 14:33:46,441 machine          L0389 DEBUG| Output:
> "qemu-system-x86_64: -device virtio-vga,virgl=on: Property
> 'virtio-vga.virgl' not found\n"
> >   2021-02-16 14:33:46,441 stacktrace       L0039 ERROR|
> >
> > I'm going to assume this is because the beefy server I was building on
> > didn't have the VirGL headers to enable this feature. In lieu of feature
> > probing you might have to do what I did for the plugins test:
> >
> >         try:
> >             vm.launch()
> >         except:
> >             # TODO: probably fails because plugins not enabled but we
> >             # can't currently probe for the feature.
> >             self.cancel("TCG Plugins not enabled?")
> >
> >
>
> While this pattern is indeed an improvement over test errors, checking
> for "build time features" is far from a new testing requirement, and
> its still not properly solved.  A long time ago I proposed a way to
> look at the Makefile variables during test time, but it had a number
> of shortcomings.  I guess it's now time to revisit this issue.
>
> First, I'm a strong believer in limiting the *probing* that the test itself
> does with regards to build time features.  The probing and authoritative
> information should already be with the build system.  I'm pretty sure that
> meson makes it easy to grab that kind of information.
>
> Once it's understood and agreed that the build system will provide
> that information, the question becomes whether tests will get that
> information from the build system (and thus require a build tree) or
> if that information will be persisted in the QEMU binary and be
> available for introspection.
>
> Thoughts? Does this sound like something other people would be
> interested in?
>

It would be more reliable and flexible to do runtime introspection. It
would allow installed tests, and some runtime checks for example.

Given the variability of builds, is there something that does introspection
in avocado-vt already?  I think we could rely on qmp introspection,
qom-list-types etc.

In the meantime Alex, could you send a patch to ignore the test the way you
propose?

[-- Attachment #2: Type: text/html, Size: 4891 bytes --]

  reply	other threads:[~2021-02-17  8:29 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-04 10:52 [PATCH v2 00/20] Various vhost-user-gpu & UI fixes marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 01/20] vhost-user-gpu: check backend for EDID support marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 02/20] vhost-user-gpu: handle vhost-user-gpu features in a callback marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 03/20] vhost-user-gpu: use an extandable state enum for commands marcandre.lureau
2021-02-04 11:26   ` Philippe Mathieu-Daudé
2021-02-04 13:43     ` Philippe Mathieu-Daudé
2021-02-04 10:52 ` [PATCH v2 04/20] vhost-user-gpu: handle display-info in a callback marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 05/20] ui: remove extra #ifdef CONFIG_OPENGL marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 06/20] ui: remove gl_ctx_get_current marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 07/20] ui: add gd_gl_area_scanout_disable marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 08/20] ui: annotate DCLOps callback requirements marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 09/20] ui: remove console_has_gl_dmabuf() marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 10/20] vhost-user-gpu: add a configuration flag for dmabuf usage marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 11/20] ui: add an optional get_flags callback to GraphicHwOps marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 12/20] ui: add a DCLOps callback to check dmabuf support marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 13/20] ui: check hw requirements during DCL registration marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 14/20] ui: add qemu_egl_has_dmabuf helper marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 15/20] ui: check gtk-egl dmabuf support marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 16/20] ui: add egl dmabuf import to gtkglarea marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 17/20] virtio-gpu: avoid re-entering cmdq processing marcandre.lureau
2021-02-05  8:09   ` Alexander Bulekov
2021-02-04 10:52 ` [PATCH v2 18/20] display/ui: add a callback to indicate GL state is flushed marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 19/20] chardev: check if the chardev is registered for yanking marcandre.lureau
2021-02-04 10:52 ` [PATCH v2 20/20] tests: add some virtio-gpu & vhost-user-gpu acceptance test marcandre.lureau
2021-02-16 16:34   ` Alex Bennée
2021-02-16 17:43     ` Cleber Rosa
2021-02-17  8:27       ` Marc-André Lureau [this message]
2021-02-17 12:12         ` Alex Bennée

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='CAMxuvayaijdaS_Ba8N+w02Q3xV5JZJ=hG1TysuPOLtyuZ2Cyrw@mail.gmail.com' \
    --to=marcandre.lureau@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=crosa@redhat.com \
    --cc=kraxel@redhat.com \
    --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 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.