From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: passt.top; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20251104 header.b=NFRTZ1xV; dkim-atps=neutral Received: from mail-yx1-xb136.google.com (mail-yx1-xb136.google.com [IPv6:2607:f8b0:4864:20::b136]) by passt.top (Postfix) with ESMTPS id 05B305A0262 for ; Wed, 27 May 2026 19:08:14 +0200 (CEST) Received: by mail-yx1-xb136.google.com with SMTP id 956f58d0204a3-65eb226b1ceso6318472d50.0 for ; Wed, 27 May 2026 10:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779901693; cv=none; d=google.com; s=arc-20240605; b=BNytPN2GuWQetDwk3d910RDfe23YdgQCHOrmmZR37pk8DPLb+F3xDIGKbXwTcK42zs SEi3/msfbfg4wBFgsoseFyTabZg+JGP26WKniq0Sj0X4omvwFw1zYAcCsEdMZpoyeKu2 1FuIL4z9aEQA28ojgqLLHFzLEbqDc6vp5zC9WABZ+Jxe+4AmvkZh5NOvpzBDsQ894wAi yImC0udGhhlQb4WG6yy3ia8IoRekRcTVPKude8mFgnq00EPrUIxJ/MO7eZ9MtSbK2ZRR I28aD9vR9AnklR9bf9HceIMdvQR6nZC+nD8r8mbTyMm16tOmNyUDOuN6NGTse3Oe/Fgh FdLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=nT5MRzfCPQAvuyOCycCfy+lVqVHVoDrbQfPVVuwFKqg=; fh=MP6pDY7h4lyla7quOTgkRjeKcXyvTic0y98AGmvb8DU=; b=I2D55hXn8FC8JSFTTWaeFml0gID42XSadVxbCJvy7i+IzzKoH4MeSwZGaat0qGyh2M 0aPFd124oGLLNzso3qfhLGFpoWS3L09Vwdvbm/tQ20EnQGTBgKfPx6C+OePRuaf5Vfzd hKoN677iMm8Cem2lJllzinaFP9AYXerE2uoEuzWgaNh5eOeWkV+qX+TdMnHLGDn2rRiQ p7j9Uk0JOflbb/AGHagIf6udFVfObLxzNNnWHnO1D+g3q4aqMgmzqcap479+dKLZlxYn WSxJg5GPE7tY1Dgm63UREAUWjqTu3nIxCGN9mDCffi2Z54rq5zQ0SxH8F0MkMi+adwvi 2qPQ==; darn=passt.top ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779901693; x=1780506493; darn=passt.top; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=nT5MRzfCPQAvuyOCycCfy+lVqVHVoDrbQfPVVuwFKqg=; b=NFRTZ1xV6SH2fJlE6ObK/YjbfZqWAEkFjrmwy9T4VzdH17k6Ln7or3zJxq861fhk5t ZjACREko0ykVPs+D6PoxIlBCxdmpsrlbBxo3euFhJrFEpe7yUBBwmhFVaxDxsDRP5kOs LfB2ntXoKfMWP2MF7dr16JrgclnDvNXrt1nyoPlsmmSpVlDY4NiQXaD8DHgEYlFQWJ0L Nctr5BXreRmgRQ5nXYZ/KHbEVmF6+/Xw/+A5aLa/9s2gPb7VRnE7Z2VRDWq4bhfWhXPr XBZMF734NBR/b656SAfni1B1DrZxHqP7vXmCT21jDx4onE+Z1jIMgQLHhPXhop/fDfGc KURw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779901693; x=1780506493; h=to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nT5MRzfCPQAvuyOCycCfy+lVqVHVoDrbQfPVVuwFKqg=; b=sqvi9CIzWGT8QFTOyxwlW66PZXzLWxDAf2HVKR/TZyDvIfGWKwfQlefJrH1qDmHF1w sb/65HHCobr/Wmdt2R54dfYELyUU2w51gXETRb45EzInl7T6AC0HxSKItt95OLw6kcxp oTd2PiLq8t0yOwfHXpoyi6yVKM34KdjNd+aBlbWVfY0ShExGajtoIPSmL0Uc0D1FOVe+ VAT5mUvXFKYg9Axp68rVIE0Ym8F6cNqLnuWwKIbhueX/pd/MA0dSfgSw1+utrbf6sMAk UcM8vFbdataAkOuCPmFa1I5ZiT78WN+aeE1zT6K+aLiaN02IMenHwbPQD38hXHlpOqOE 4GhQ== X-Gm-Message-State: AOJu0YwSIKuvcWn1eovGeDxEmj2tobfnvejJ+3qdyKnAQG9YYkgfaKK2 YQSpnKJ/I4G77poARizC6mJTwRMdR403B/dGCQx+hQHQbxJy3NqY3QHHNrmmTlhAu8ny5NztVaq xOn2eKF1expUWEY62ALGwO9IVPl9aDdtPdOJJ X-Gm-Gg: Acq92OF5gs4h+dita1wlnDttZIHD2uzEIhI9K1l0U7/GMEjVupbYlT+I25M6IILgHsT JqlXTyL53SYMC8ncZWSeWZEOU+L/cwoscjN094wII2Gzz5/2qWyYRUfTuPgkdK8sJ+8GUnXAUpf VGsdHi5dhvXjFexvsP2tp/7oa9DMPs/+KTEfWt2Nr2EIPdvzK9FvR/y6qCwm3DYM2bvwolYVQC1 9LRLpXol9kQllSryXCYdbiyCL+MjE2tKfdDwKH09wVSU6x803FBpaGASMF0rvvQl0GaxVH8w8LM eeBDidSLiBEDJ9S0WCLZSYd2GZSPOZLrqCS3YEU+UGsTlWqkp2uq X-Received: by 2002:a05:690e:44a5:b0:658:d26:d8cf with SMTP id 956f58d0204a3-65ec9775c5bmr17162324d50.23.1779901692370; Wed, 27 May 2026 10:08:12 -0700 (PDT) MIME-Version: 1.0 From: Lisanna Dettwyler Date: Wed, 27 May 2026 13:08:01 -0400 X-Gm-Features: AVHnY4KX0tGuSW6c1unF0zakWu1FMyupaPPJZ0JLmdbZR3laE5SFemMRtKZrB9s Message-ID: Subject: Startup fd to avoid busywaits To: passt-dev@passt.top Content-Type: multipart/alternative; boundary="0000000000001be4360652cfa86e" X-MailFrom: lisanna.dettwyler@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation Message-ID-Hash: YM7SVGYYS5RLNHYUFESH3EMQX4DXLC34 X-Message-ID-Hash: YM7SVGYYS5RLNHYUFESH3EMQX4DXLC34 X-Mailman-Approved-At: Wed, 27 May 2026 21:09:11 +0200 X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --0000000000001be4360652cfa86e Content-Type: text/plain; charset="UTF-8" Hello! I would like to propose a patch that allows the invoker to pass a "ready fd" on startup that gets written to once the setup has been completed, similar to slirp4netns's `--ready-fd` flag. Currently we have to poll the interface in a loop to wait for setup to be completed, and it would be much better if we could instead block on fd activity. Just wanted to check if such a contribution would be welcome before putting in the work of authoring it, or if there's already a better way to wait for the interface to come up. This is our current implementation: https://github.com/NixOS/nix/pull/15919/changes#diff-2a9176262efad1ef345d882b0779646e7a5aaf9ca8db33e9da7fc408594b5377R94-R125 Thanks, Lisanna --0000000000001be4360652cfa86e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello! I would like to propose a patch that allows the inv= oker to pass a "ready fd" on startup that gets written to once th= e setup has been completed, similar to slirp4netns's `--ready-fd` flag.= Currently we have to poll the interface in a loop to wait for setup to be = completed, and it would be much better if we could instead block on fd acti= vity.

Just wanted to check if such a contribution would = be welcome before putting in the work of authoring it, or if there's al= ready a better way to wait for the interface to come up. This is our curren= t implementation:=C2=A0https://github.com/NixOS/nix/pull/15919/changes#diff-2a9176262ef= ad1ef345d882b0779646e7a5aaf9ca8db33e9da7fc408594b5377R94-R125

Thanks,
Lisanna
--0000000000001be4360652cfa86e--