From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kJ5QOj4Ic19eJQAA0tVLHw (envelope-from ) for ; Tue, 29 Sep 2020 10:11:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 8BQpNj4Ic1/QEgAAB5/wlQ (envelope-from ) for ; Tue, 29 Sep 2020 10:11:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 39B519402B1 for ; Tue, 29 Sep 2020 10:11:10 +0000 (UTC) Received: from localhost ([::1]:52300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNCbF-0006b8-0O for larch@yhetil.org; Tue, 29 Sep 2020 06:11:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44206) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNCb8-0006a0-A4 for guix-patches@gnu.org; Tue, 29 Sep 2020 06:11:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:43438) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNCb7-0003LF-Vh for guix-patches@gnu.org; Tue, 29 Sep 2020 06:11:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kNCb7-0000Va-R0 for guix-patches@gnu.org; Tue, 29 Sep 2020 06:11:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43650] [PATCH 4/8] services: hurd-vm: Check whether /dev/kvm exists at run time. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Sep 2020 10:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43650 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Jan Nieuwenhuizen Cc: 43650@debbugs.gnu.org Received: via spool by 43650-submit@debbugs.gnu.org id=B43650.16013742601946 (code B ref 43650); Tue, 29 Sep 2020 10:11:01 +0000 Received: (at 43650) by debbugs.gnu.org; 29 Sep 2020 10:11:00 +0000 Received: from localhost ([127.0.0.1]:54984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNCb6-0000VJ-2c for submit@debbugs.gnu.org; Tue, 29 Sep 2020 06:11:00 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNCb4-0000V7-Mo for 43650@debbugs.gnu.org; Tue, 29 Sep 2020 06:10:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34987) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNCaz-0003IS-G6; Tue, 29 Sep 2020 06:10:53 -0400 Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=57740 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kNCay-0000F6-VF; Tue, 29 Sep 2020 06:10:53 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200927153221.9154-1-ludo@gnu.org> <20200927153221.9154-4-ludo@gnu.org> <87h7rh4yyd.fsf@gnu.org> Date: Tue, 29 Sep 2020 12:10:50 +0200 In-Reply-To: <87h7rh4yyd.fsf@gnu.org> (Jan Nieuwenhuizen's message of "Mon, 28 Sep 2020 19:02:02 +0200") Message-ID: <87r1qk7v11.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -1.51 X-TUID: RMwh1AKIJ1SC Hi! I=E2=80=99ve pushed =E2=80=98wip-childhurd=E2=80=99 with a few additional c= ommits. The flaky startup issue appears to be fixed by: 88946005d7 * services: secret-service: Add initial client/server handshak= e. Before that, what would happen is that: 1. The host would connect(2) to QEMU as soon as QEMU is running; connect(2) would succeed immediately and so the host would send its secrets right away, disconnect, and move on. However, at that point, the guest is still booting and its secret service server is not even accept(2)ing yet. Looks like QEMU=E2=80=99s SLIRP would more or less buffer the packets the host sent, =E2=80=9Cmo= re or less=E2=80=9D being the important point. 2. The guest would eventually accept(2), which would succeed. Then it would sometimes receive stuff, sometimes not, depending on what happened with the SLIRP buffering I suppose. The fix is to have the server in the guest send a =E2=80=9Chello=E2=80=9D m= essage. The client in the host waits for that message before sending its secrets. Consequently, it can take ~20s for the =E2=80=98start=E2=80=99 method of th= e childhurd to succeed. Eventually, when shepherd runs on Fibers or similar, it won=E2=80=99t be a problem, but for now it means that PID=C2=A01 remains st= uck in select(2) for this many seconds. Ludo=E2=80=99.