From nobody Thu Nov 6 01:10:29 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1538298581603714.5298434563209; Sun, 30 Sep 2018 02:09:41 -0700 (PDT) Received: from localhost ([::1]:54530 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6XjL-0004vf-DP for importer@patchew.org; Sun, 30 Sep 2018 05:09:35 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41786) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6WsB-00031t-Ld for qemu-devel@nongnu.org; Sun, 30 Sep 2018 04:14:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6WsA-0001FV-M4 for qemu-devel@nongnu.org; Sun, 30 Sep 2018 04:14:39 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]:50896) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g6WsA-0000yK-Aa for qemu-devel@nongnu.org; Sun, 30 Sep 2018 04:14:38 -0400 Received: by mail-wm1-x333.google.com with SMTP id s12-v6so5813887wmc.0 for ; Sun, 30 Sep 2018 01:14:13 -0700 (PDT) Received: from 640k.lan (94-36-187-248.adsl-ull.clienti.tiscali.it. [94.36.187.248]) by smtp.gmail.com with ESMTPSA id u76-v6sm11369194wmd.10.2018.09.30.01.14.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Sep 2018 01:14:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=t8QE7qzACmSTUNJeiuY1pDLnffGygGEId5TJe5B1cos=; b=HHFQbzpxoB7aLKPotJmJutzJFdYAQAx5rp0IvRDM3AJDvMLDUZdchL9gfrqS7rhQ1n J1iZjJpwfjbHYvVV0lsjIXha9GPynRi2uLreXL16FV6WN5k5P/dE7jUtiMObaWloDO/w ipuj+4NxsgWMU5TbFWpqh+jj9Cmb//ZEuiWZnsI1Ru4W0DoExEMGOFjU/uD54rqVp8yp ttaqTNZe10r7GX0ADAdVB9IBrAiOcrz1R6N0XLj8q8l2rMZIKnuHyB6n3pj+gatpOPyX pR1OSzko5YuMUYgPhdOvkYTg3nvGIWS0Z1eMJedxLs5iwZAv91M/nJTDOZAc9pTF1aXL SJrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=t8QE7qzACmSTUNJeiuY1pDLnffGygGEId5TJe5B1cos=; b=sb5t80eQqBAg5Gp0ZGflZDuOV8X+Z41Q6hyQwc6qvgqC67Y/lAH/lpiVMs1MgeCnb/ QPrLZ8HzAHYk9AI82EAcn9ysY0xoeTIuMlOpjO5iH7Hi/s+QkWlWs36F3HXO3XLTh0Yz MyXEJOrERFTrqx5Cppjb4NLn98hIvndgMHx5sXgUmiqZh/wFstijQEtgoZ8+YMUiO2fA OUKLm7H2o+0bthc3GQidoCVRw9C2Blj4yvh+shUsimg3p4nMPOB7rw3oGXm0z6GYw4uP YD0XmqfcoushQuqidFhVr9xaGK2IGXzutGQgxWDgrj4tRCAJd3dphD2PeMYNWHODR/55 VQRQ== X-Gm-Message-State: ABuFfogBlgZICWR/0tka3Ok5Fb/gavCh6NhJe52btHhZpyrz/6singC0 heUZGJMimA2fo/sMjrsgV+y3O6zl X-Google-Smtp-Source: ACcGV62g/Kss0yqWKNISVFAbrvGAk9GI9GxbuClCQBt8jZJEKiKo2wfR5jzSNyaSnbadJbA+6ANszg== X-Received: by 2002:a1c:d9cc:: with SMTP id q195-v6mr5627936wmg.23.1538295252172; Sun, 30 Sep 2018 01:14:12 -0700 (PDT) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Sun, 30 Sep 2018 10:12:48 +0200 Message-Id: <1538295197-23704-51-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1538295197-23704-1-git-send-email-pbonzini@redhat.com> References: <1538295197-23704-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::333 Subject: [Qemu-devel] [PULL 50/79] Revert "chardev: tcp: postpone TLS work until machine done" X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDMRC_1 RDKM_2 RSF_0 Z_629925259 SPT_0 From: Marc-Andr=C3=A9 Lureau This reverts commit 99f2f54174a595e3ada6e4332fcd2b37ebb0d55d. See next commit reverting 25679e5d58e258e9950685ffbd0cae4cd40d9cc2 as well for rationale. Signed-off-by: Marc-Andr=C3=83=C2=A9 Lureau Message-Id: <20180817135224.22971-2-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini Signed-off-by: Marc-Andr=C3=A9 Lureau --- chardev/char-socket.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/chardev/char-socket.c b/chardev/char-socket.c index efbad6e..e28d2cc 100644 --- a/chardev/char-socket.c +++ b/chardev/char-socket.c @@ -32,7 +32,6 @@ #include "qapi/error.h" #include "qapi/clone-visitor.h" #include "qapi/qapi-visit-sockets.h" -#include "sysemu/sysemu.h" =20 #include "chardev/char-io.h" =20 @@ -724,11 +723,6 @@ static void tcp_chr_tls_init(Chardev *chr) Error *err =3D NULL; gchar *name; =20 - if (!machine_init_done) { - /* This will be postponed to machine_done notifier */ - return; - } - if (s->is_listen) { tioc =3D qio_channel_tls_new_server( s->ioc, s->tls_creds, @@ -1169,10 +1163,6 @@ static int tcp_chr_machine_done_hook(Chardev *chr) tcp_chr_connect_async(chr); } =20 - if (s->ioc && s->tls_creds) { - tcp_chr_tls_init(chr); - } - return 0; } =20 --=20 1.8.3.1