From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33416) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0ssr-00067z-WB for qemu-devel@nongnu.org; Tue, 16 Dec 2014 09:14:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0ssl-0004vo-PD for qemu-devel@nongnu.org; Tue, 16 Dec 2014 09:13:53 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0ssl-0004vR-I7 for qemu-devel@nongnu.org; Tue, 16 Dec 2014 09:13:47 -0500 From: Gerd Hoffmann Date: Tue, 16 Dec 2014 15:13:35 +0100 Message-Id: <1418739217-6561-5-git-send-email-kraxel@redhat.com> In-Reply-To: <1418739217-6561-1-git-send-email-kraxel@redhat.com> References: <1418739217-6561-1-git-send-email-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 4/6] spice: do not require TCP ports List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Gerd Hoffmann , Anthony Liguori From: Marc-Andr=C3=A9 Lureau It is possible to use Spice server without TCP port. On local VM, qemu (and libvirt) can add new clients thanks to QMP add_client command. Signed-off-by: Marc-Andr=C3=A9 Lureau Signed-off-by: Gerd Hoffmann --- ui/spice-core.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ui/spice-core.c b/ui/spice-core.c index 6467fa4..e8d4bae 100644 --- a/ui/spice-core.c +++ b/ui/spice-core.c @@ -661,10 +661,6 @@ void qemu_spice_init(void) } port =3D qemu_opt_get_number(opts, "port", 0); tls_port =3D qemu_opt_get_number(opts, "tls-port", 0); - if (!port && !tls_port) { - error_report("neither port nor tls-port specified for spice"); - exit(1); - } if (port < 0 || port > 65535) { error_report("spice port is out of range"); exit(1); --=20 1.8.3.1