From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoAjW-0007SH-3T for qemu-devel@nongnu.org; Tue, 11 Nov 2014 07:39:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoAjL-0003mq-KT for qemu-devel@nongnu.org; Tue, 11 Nov 2014 07:39:41 -0500 Received: from mail-qc0-x22d.google.com ([2607:f8b0:400d:c01::22d]:37618) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoAjL-0003ml-F8 for qemu-devel@nongnu.org; Tue, 11 Nov 2014 07:39:31 -0500 Received: by mail-qc0-f173.google.com with SMTP id x3so7260548qcv.4 for ; Tue, 11 Nov 2014 04:39:29 -0800 (PST) From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Tue, 11 Nov 2014 13:39:19 +0100 Message-Id: <1415709559-2011-1-git-send-email-marcandre.lureau@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PATCH] 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?= , kraxel@redhat.com 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é Lureau --- 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 = qemu_opt_get_number(opts, "port", 0); tls_port = 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); -- 1.9.3