qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] hw/display: report an error if virgl initialization failed
@ 2021-07-01  7:18 marcandre.lureau
  2021-07-01  7:18 ` [PATCH 2/2] hw/display: fail early when multiple virgl devices are requested marcandre.lureau
  0 siblings, 1 reply; 4+ messages in thread
From: marcandre.lureau @ 2021-07-01  7:18 UTC (permalink / raw)
  To: qemu-devel; +Cc: Marc-André Lureau, kraxel

From: Marc-André Lureau <marcandre.lureau@redhat.com>

Currently, virgl initialization error are silently ignored.

This is likely going to crash later on, as the device isn't fully
initialized then.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 hw/display/virtio-gpu-virgl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/display/virtio-gpu-virgl.c b/hw/display/virtio-gpu-virgl.c
index 092c6dc380..46b56f94d9 100644
--- a/hw/display/virtio-gpu-virgl.c
+++ b/hw/display/virtio-gpu-virgl.c
@@ -605,6 +605,7 @@ int virtio_gpu_virgl_init(VirtIOGPU *g)
 
     ret = virgl_renderer_init(g, 0, &virtio_gpu_3d_cbs);
     if (ret != 0) {
+        error_report("virgl could not be initialized: %d", ret);
         return ret;
     }
 
-- 
2.29.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-07-05 10:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-01  7:18 [PATCH 1/2] hw/display: report an error if virgl initialization failed marcandre.lureau
2021-07-01  7:18 ` [PATCH 2/2] hw/display: fail early when multiple virgl devices are requested marcandre.lureau
2021-07-03  5:14   ` Mark Cave-Ayland
2021-07-05 10:42     ` Marc-André Lureau

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).