Received: from eggs.gnu.org ([2001:4830:134:3::10]:40470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afUEn-0001uC-FH for qemu-devel@nongnu.org; Mon, 14 Mar 2016 11:16:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afUEj-0003hy-4z for qemu-devel@nongnu.org; Mon, 14 Mar 2016 11:16:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38505) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afUEi-0003hi-TI for qemu-devel@nongnu.org; Mon, 14 Mar 2016 11:16:49 -0400 Date: Mon, 14 Mar 2016 16:16:45 +0100 From: Christophe Fergeau Message-ID: <20160314151645.GI27985@edamame.cdg.redhat.com> References: <1457955672-28758-1-git-send-email-cfergeau@redhat.com> <1457967611.5358.18.camel@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="h3LYUU6HlUDSAOzy" Content-Disposition: inline In-Reply-To: <1457967611.5358.18.camel@redhat.com> Subject: Re: [Qemu-devel] [PATCH] spice: Disallow use of gl + TCP port List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: =?iso-8859-1?Q?Marc-Andr=E9?= Lureau , qemu-devel@nongnu.org --h3LYUU6HlUDSAOzy Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Mar 14, 2016 at 04:00:11PM +0100, Gerd Hoffmann wrote: > On Mo, 2016-03-14 at 12:41 +0100, Christophe Fergeau wrote: > > 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. >=20 > Hmm. It's something which we want support long-term though, by encoding > those dma-bufs as video stream and send them off over tcp. >=20 > I don't think this is a good idea long-term. Yes, long-term we will want to remove this once spice gets support for this. Currently however, this imo makes it a bit easier to understand how everything is setup. Otherwise I expect people are going to just take their existing SPICE libvirt configuration listening on the network, add to it, try remote-viewer spice://localhost:5900 and wonder why they get a black screen, and not know whether this is because their guest does not support virgl, or their host, or because of some other issue, ... Having this as a stopgap ensures that they at least be informed this is not a valid usecase. > And even as temporary stopgap: Can libvirt + virt-manager handle this? libvirt can, I haven't tried virt-manager (I believe all the patches =66rom Marc-Andr=E9 haven't been pushed yet) starts QEMU with -spice port=3D0 Christophe --h3LYUU6HlUDSAOzy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJW5tXdAAoJEKnYwhQprGyCB7UP/3HSr1ezvf4LaN3dT5eVjNZg 9dPvUpXlw6gFfbtUKhCDBxDsg7AohoCFBFToT0Ee0OOr5lDyQ3SbSux28YBoDsT8 PTviK7YUWLpD+eFShQiX8U0NgfnXaQzEbfQVNWaAT+eokVUs5xqVXRQmQYEwUnES GhtkzCXapEqo+WcYDn6CzS5VOACQAwu/XgjQqC+lGkSPQ+Q/rj8eOWqidCTZNX4k 8Hio20WHQgeBjEg0cbzVcOWjZycMPSFM7O4i/1hhjObAWJKPjHo7PpomrMKMf3XO S4ryhomudYN3BJktdUlVXRFbggfYfNGA1uUDXa6YSUg0UadFBSxtnQwpsCMIbYmw G/jEXcEsotHCwObjKfXLyNpclzDEQPRKlEY8V4Zr9tzOtr77ZeTpLmjI1Yf+gOG5 u4ZkFoB3Bsobt0HeTN/q3sthPp1irD0wK9Hr9Ounc/huyDnUOmNPEnIFB6dr/RuG a+bNYl7I0G+kVsOZgTCkWecCzrPFHVJuxg6RI5qFMiJ1VMZCitq7xE12ezQEXOrh fj7Y5448YtIH2ENUER3HKPLh1ktS4TI1N5T42l/xltq3aGOklp1taxgHbq8zO6+X L9b7q+Plk+xuvwakA/s2j+xQskoI9fhNN5RiOQ7WCQ62Sewe+uj3+07O1uaZ+Vjz HCqIMujMNHFTkKb3cNXN =QRLu -----END PGP SIGNATURE----- --h3LYUU6HlUDSAOzy--