All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] spice: Disallow use of gl + TCP port
@ 2016-03-14 11:41 Christophe Fergeau
  2016-03-14 13:34 ` Marc-André Lureau
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Christophe Fergeau @ 2016-03-14 11:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: Marc-André Lureau, Gerd Hoffmann

Currently, virgl support has to go through a local unix socket, trying
to connect to a VM using -spice gl through spice://localhost:5900 will
only result in a black screen.
This commit errors out when the user tries to start a VM with both GL
support and a port/tls-port set.
This would fit better in spice-server, but currently QEMU does not call
into spice-server when parsing 'gl' on its command line, so we have to
do this check in QEMU instead.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
---
 ui/spice-core.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ui/spice-core.c b/ui/spice-core.c
index 7987a4e..94f3236 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -844,6 +844,10 @@ void qemu_spice_init(void)
 
 #ifdef HAVE_SPICE_GL
     if (qemu_opt_get_bool(opts, "gl", 0)) {
+        if ((port != 0) || (tls_port != 0)) {
+            error_report("SPICE GL support is local-only for now and incompatible with -spice port/tls-port");
+            exit(1);
+        }
         if (egl_rendernode_init() == 0) {
             display_opengl = 1;
         }
-- 
2.5.0

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

end of thread, other threads:[~2016-03-18  9:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-14 11:41 [Qemu-devel] [PATCH] spice: Disallow use of gl + TCP port Christophe Fergeau
2016-03-14 13:34 ` Marc-André Lureau
2016-03-14 15:00 ` Gerd Hoffmann
2016-03-14 15:16   ` Christophe Fergeau
2016-03-15 13:09     ` Gerd Hoffmann
2016-03-15 14:17       ` Christophe Fergeau
2016-03-15 14:32         ` Gerd Hoffmann
2016-03-16  9:10           ` Christophe Fergeau
2016-03-14 15:41 ` Eric Blake
2016-03-15  9:49   ` Christophe Fergeau
2016-03-18  8:17 ` Gerd Hoffmann
2016-03-18  9:07   ` Christophe Fergeau

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.