From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org
Cc: "Michael S. Tsirkin" <mst@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: Re: [PATCH 1/3] hw/display/virtio-gpu: Improve "opengl is not available" error message
Date: Tue, 6 Aug 2024 09:33:16 +0200 [thread overview]
Message-ID: <eef17fc4-c73e-4926-b67e-fc967fe316a0@linaro.org> (raw)
In-Reply-To: <20240731154136.3494621-2-peter.maydell@linaro.org>
On 31/7/24 17:41, Peter Maydell wrote:
> If the user tries to use the virtio-gpu-gl device but the display
> backend doesn't have OpenGL support enabled, we currently print a
> rather uninformative error message:
>
> $ qemu-system-aarch64 -M virt -device virtio-gpu-gl
> qemu-system-aarch64: -device virtio-gpu-gl: opengl is not available
>
> Since OpenGL is not enabled on display frontends by default, users
> are quite likely to run into this. Improve the error message to
> be more specific and to suggest to the user a path forward.
>
> Note that the case of "user tried to enable OpenGL but the display
> backend doesn't handle it" is caught elsewhere first, so we can
> assume that isn't the problem:
>
> $ qemu-system-aarch64 -M virt -device virtio-gpu-gl -display curses,gl=on
> qemu-system-aarch64: OpenGL is not supported by the display
>
> (Use of error_append_hint() requires us to add an ERRP_GUARD() to
> the function, as noted in include/qapi/error.h.)
>
> With this commit we now produce the hopefully more helpful error:
> $ ./build/x86/qemu-system-aarch64 -M virt -device virtio-gpu-gl
> qemu-system-aarch64: -device virtio-gpu-gl: The display backend does not have OpenGL support enabled
> It can be enabled with '-display BACKEND,gl=on' where BACKEND is the name of the display backend to use.
>
> Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2443
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> hw/display/virtio-gpu-gl.c | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
next prev parent reply other threads:[~2024-08-06 7:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-31 15:41 [PATCH 0/3] virtio-gpu-gl: Improve OpenGL and related display error messages Peter Maydell
2024-07-31 15:41 ` [PATCH 1/3] hw/display/virtio-gpu: Improve "opengl is not available" error message Peter Maydell
2024-08-06 7:33 ` Philippe Mathieu-Daudé [this message]
2024-08-06 13:37 ` Alex Bennée
2024-07-31 15:41 ` [PATCH 2/3] system/vl.c: Expand OpenGL related errors Peter Maydell
2024-08-06 7:31 ` Philippe Mathieu-Daudé
2024-08-06 13:41 ` Alex Bennée
2024-08-06 15:20 ` Antonio Caggiano
2024-08-06 19:27 ` Philippe Mathieu-Daudé
2024-07-31 15:41 ` [PATCH 3/3] ui/console: Note in '-display help' that some backends support suboptions Peter Maydell
2024-08-06 7:47 ` Philippe Mathieu-Daudé
2024-07-31 15:59 ` [PATCH 0/3] virtio-gpu-gl: Improve OpenGL and related display error messages Marc-André Lureau
2024-08-06 12:46 ` 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=eef17fc4-c73e-4926-b67e-fc967fe316a0@linaro.org \
--to=philmd@linaro.org \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@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).