From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: passt.top; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=B36sGueA; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTPS id 3DBAA5A0008 for ; Mon, 28 Apr 2025 17:50:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1745855399; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PJuhTo8QaDhkvLA17Z6cQMTGULipQK4iCrLae33CJn0=; b=B36sGueAI7F+Cii5YhcWaXddJkpcyrjpXACCehCgkFTzDkbM6z0ZVu6TiZ4O7XUKzeKtw8 2BBmMCklnYxRNqt4eoTUhhglE9cLpRanzCHTtgZ7Na1gyhwMSKnKg1guR2h6viEhq9RPP8 oj/9h33+2Eop2yQl7EqOmuN77M6IZE0= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-228-XUzMgBE8OZ-IKzuVAckJ3A-1; Mon, 28 Apr 2025 11:49:57 -0400 X-MC-Unique: XUzMgBE8OZ-IKzuVAckJ3A-1 X-Mimecast-MFC-AGG-ID: XUzMgBE8OZ-IKzuVAckJ3A_1745855396 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-43ceb011ea5so27780935e9.2 for ; Mon, 28 Apr 2025 08:49:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745855395; x=1746460195; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PJuhTo8QaDhkvLA17Z6cQMTGULipQK4iCrLae33CJn0=; b=j/dYRQjd1fjFT2THn3/SU2AUwVik6/mXNpDvGcfUk+NXurQH4FDZWT5op54NMSvz8x Q7ojfxmfQKlBZx9fPaX9RlYC3gmGNr/QQcMCLMPkkAJz+1DzpRQJ262X0WcDvnZliUtw t1GGNT3QY/yLkha/0X6DZ52zvzMHDmb0S2HTW4La0nVaOH6iZbRtOSLdjcziqnRO849U PYx4n3uUp1K5WMsmugNtSYwTXYWzYTJ1C0e2pEvCi0XcXI/MaHr9gmuXQTwqEFRW7X9G gKN6Q8W/JYCPVWN2U5R2ffUwKX1MUJSbeRPu4fv9xZs+NYppTO+IzXRJRBkOqXHWWdy2 ZgOA== X-Gm-Message-State: AOJu0YxHvuIGdnx1NuxvILI1kCovsIG1eiOYgeoDAK5c6rKJMWVMfAdO ssPyc4kMxSoqVvtBEOB9+rM45PEqxAr+tMuBfPEP7LrCWDBXW9rBNxrtvAyM8yZs8NvRZLtAw9U DRU8f2lb2QNpp1c6jB4Se8PCWocjFrCZvchQaAY/0d2VvEh+ueS0wvQovWw== X-Gm-Gg: ASbGncufUIREi/bhxfC5KxK+fxooGgYu7XIG24iIH87bzgYlXGzHbvfA3IVgSM4Huy7 GIMoJ8xYdaXRs8HOR1kf5Pg7pPyH9PKzr6W/K1pxaDPiWOEV4lAtgXREgY/Zo8oJwZonCFWojHG Li6Mj3CKOr7yuDxJnY5FWbIZaw0vcoBFozKDv+19dDR0UNBvjXtKB189evumgkjPHLXLU+0kmEZ 14T8x8+mSUMyBWMbprvxccw3ltqIbTQHahB0oLmGtBBlPSZJbKO1ZNsMv3USBDVmFC5iBd6a1db cE2VsVNQp6Yg7A9Nc0Z4lk4= X-Received: by 2002:a05:600c:a41a:b0:43d:4e9:27f3 with SMTP id 5b1f17b1804b1-440b0b32f17mr36490365e9.9.1745855395582; Mon, 28 Apr 2025 08:49:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGDOgx9tt3jsir+0n7fLwm7CUuMP2AI0bZzOkcwl+7mfZkSmWSjphFt+tl3Bg9eK3M4POHxTg== X-Received: by 2002:a05:600c:a41a:b0:43d:4e9:27f3 with SMTP id 5b1f17b1804b1-440b0b32f17mr36490175e9.9.1745855395159; Mon, 28 Apr 2025 08:49:55 -0700 (PDT) Received: from maya.myfinge.rs (ifcgrfdd.trafficplex.cloud. [2a10:fc81:a806:d6a9::1]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-440a5303c08sm127293915e9.13.2025.04.28.08.49.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Apr 2025 08:49:54 -0700 (PDT) Date: Mon, 28 Apr 2025 17:49:53 +0200 From: Stefano Brivio To: Alyssa Ross Subject: Re: [PATCH] conf: allow --fd 0 Message-ID: <20250428174953.4db42f5b@elisabeth> In-Reply-To: <20250428143602.5130c64d@elisabeth> References: <20250426084425.25940-1-hi@alyssa.is> <20250428143602.5130c64d@elisabeth> Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.49; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: LcU9TLbL0XKH8MrHml1Xga6h_u2PsK1UFdzg0VaYezs_1745855396 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: 6W33O5K2TQDUPUES2RD6TSAVKORA7726 X-Message-ID-Hash: 6W33O5K2TQDUPUES2RD6TSAVKORA7726 X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top 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: On Mon, 28 Apr 2025 14:36:02 +0200 Stefano Brivio wrote: > On Sat, 26 Apr 2025 10:44:25 +0200 > Alyssa Ross wrote: >=20 > > inetd-style socket passing traditionally starts a service with a > > connected socket on file descriptors 0 and 1. passt disallowing > > obtaining its socket from either of these descriptors made it > > difficult to use with super-servers providing this interface =E2=80=94 = in my > > case I wanted to use passt with s6-ipcserver[1]. =20 >=20 > Hah, interesting usage, first report I've seen with s6. Is that to > dispatch passt processes for a network / set of guests or something? Never mind, I just found: https://spectrum-os.org/git/spectrum/commit/?id=3Daac74f6165740a6b041a720= 5ec86665744937a77 and related commits. I'm glad to see passt being useful there! By the way, if it helps: - you can actually use QEMU with e1000e and passt, it's somewhat slower than virtio-net (especially with vhost-user), about 1-2 Gbps in my experience, but perfectly usable. For a command line example, see: https://bugs.passt.top/show_bug.cgi?id=3D107#c0 - libkrun, which is somewhat similar to / shares some code with Cloud Hypervisor, also uses passt, like this: https://github.com/containers/libkrun/blob/main/src/devices/src/virtio/= net/passt.rs ...that's without vhost-user support, so far. I had no idea you got Cloud Hypervisor and crosvm to use passt *with* vhost-user supprt, though. That looks like one step further :) - muvm, which uses libkrun to run arbitrary commands in micro VMs (it has conceptually a couple of things in common with Qubes and Spectrum I guess), uses passt's NDP responder and DHCP server to configure its guest network: https://github.com/AsahiLinux/muvm/blob/dc874d4e6c261624b7c6cc9aab151d4= d33d413ed/crates/muvm/src/guest/net.rs#L268 --=20 Stefano