From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>,
Christophe Fergeau <cfergeau@redhat.com>
Subject: [Qemu-devel] [PULL 5/5] spice: Disallow use of gl + TCP port
Date: Fri, 18 Mar 2016 11:26:35 +0100 [thread overview]
Message-ID: <1458296795-29995-6-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1458296795-29995-1-git-send-email-kraxel@redhat.com>
From: Christophe Fergeau <cfergeau@redhat.com>
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>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 1457955672-28758-1-git-send-email-cfergeau@redhat.com
[ applied codestyle fix: break long line ]
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
ui/spice-core.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/ui/spice-core.c b/ui/spice-core.c
index e117925..61db3c1 100644
--- a/ui/spice-core.c
+++ b/ui/spice-core.c
@@ -828,6 +828,11 @@ 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;
}
--
1.8.3.1
prev parent reply other threads:[~2016-03-18 10:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-18 10:26 [Qemu-devel] [PULL 0/5] ui: input-linux + spice fixes, switch cocoa to QKeyCode Gerd Hoffmann
2016-03-18 10:26 ` [Qemu-devel] [PULL 1/5] input-linux: switch over to -object Gerd Hoffmann
2016-03-18 10:26 ` [Qemu-devel] [PULL 2/5] input-linux: fix Coverity warning Gerd Hoffmann
2016-03-18 10:26 ` [Qemu-devel] [PULL 3/5] qapi-schema.json: Add power and keypad equal keys Gerd Hoffmann
2016-03-18 10:26 ` [Qemu-devel] [PULL 4/5] ui/cocoa.m: switch to QKeyCode Gerd Hoffmann
2016-03-18 10:26 ` Gerd Hoffmann [this message]
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=1458296795-29995-6-git-send-email-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=cfergeau@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 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).