From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 966252591; Tue, 25 Nov 2025 11:37:42 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 5CC6B251C; Tue, 25 Nov 2025 11:37:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_PASS,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=4.0.1 Received: from mail.cyberchaos.dev (mail.cyberchaos.dev [IPv6:2a0f:4ac0::3a11]) by atuin.qyliss.net (Postfix) with ESMTPS id 0CEFB251A for ; Tue, 25 Nov 2025 11:37:38 +0000 (UTC) Message-ID: <2cf02c2f-04f9-4983-9017-80a700423bf3@yuka.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yuka.dev; s=mail; t=1764070650; 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:autocrypt:autocrypt; bh=WrxTNkBlVGCEqje+8Yb0qc1c4syUC/PGtwCXoYQN5Fs=; b=TY5SGj1rWDUz6W8IVKdGwV7TkAuJe1dZtPIosxtSSF/epptHl/gIxvSsH6GPBT1NzyJOnk WXFs+7D7aNrL657DQoh0wSckapH8n0E9SDCyatoqIWYxxWzUncWMf73dvSTPcDGW1d3DVc 94NWT+bQxhPIK5yMppSFFZWx/mhv6I0= Date: Tue, 25 Nov 2025 12:37:25 +0100 MIME-Version: 1.0 Subject: Re: [PATCH v1 RFC 1/4] vm/sys/net: remove connman & dbus To: Alyssa Ross References: <20251124163531.91029-1-yureka@cyberchaos.dev> <20251124163531.91029-2-yureka@cyberchaos.dev> <87o6oqwh8r.fsf@alyssa.is> Content-Language: en-US From: Yureka Autocrypt: addr=yuka@yuka.dev; keydata= xjMEZ3vnnhYJKwYBBAHaRw8BAQdAn6RVMnaxLzmDDx+J3jSUGY7BqjyDhsWhdwKBSI6QpXfN Fll1cmVrYSA8eXVrYUB5dWthLmRldj7CjgQTFgoANhYhBPGINbLQ3ypM7JNhigKbtnC7kwpH BQJne+eeAhsDBAsJCAcEFQoJCAUWAgMBAAIeBQIXgAAKCRACm7Zwu5MKRx1qAP9ToLaOMd73 VVf1JdwoMc5G44OZfKNk/+ezt9Dl2oqZdQD/Xvgd0lytU3BZ4WnYeMNzo2xHeRxXmX+MfXhA D33tzQ/OOARne+eeEgorBgEEAZdVAQUBAQdAIs9uImfvgSCnJOcfvzshLuaSRJ/a0Vp/9rUA eBGZq10DAQgHwngEGBYKACAWIQTxiDWy0N8qTOyTYYoCm7Zwu5MKRwUCZ3vnngIbDAAKCRAC m7Zwu5MKRyW9AP0dBOuwgWso+QjBZUsbuEmGGUz2OWtszs2Yb7087RMerwEA3al6E7vqq0HC 7LiB3nisU+xqQojJ4n/fWCu70iEkjQw= In-Reply-To: <87o6oqwh8r.fsf@alyssa.is> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID-Hash: 2VFQTZZUQMP2SBA7WYDWLFKJY6R2A6NR X-Message-ID-Hash: 2VFQTZZUQMP2SBA7WYDWLFKJY6R2A6NR X-MailFrom: yuka@yuka.dev X-Mailman-Rule-Hits: member-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address CC: devel@spectrum-os.org X-Mailman-Version: 3.3.9 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On 11/25/25 11:15, Alyssa Ross wrote: > Yureka Lilian writes: > >> In preparation to integrating xdp-forwarder, making the net-vm a net-driver VM. >> >> Signed-off-by: Yureka Lilian >> --- >> vm/sys/net/Makefile | 2 +- >> vm/sys/net/default.nix | 8 +++----- >> vm/sys/net/file-list.mk | 13 +------------ >> vm/sys/net/image/etc/dbus-1/system.conf | 8 -------- >> .../etc/s6-rc/connman/dependencies.d/dbus | 0 >> vm/sys/net/image/etc/s6-rc/connman/run | 19 ------------------- >> vm/sys/net/image/etc/s6-rc/connman/type | 1 - >> .../net/image/etc/s6-rc/connman/type.license | 2 -- >> .../net/image/etc/s6-rc/dbus/notification-fd | 1 - >> .../etc/s6-rc/dbus/notification-fd.license | 2 -- >> vm/sys/net/image/etc/s6-rc/dbus/run | 10 ---------- >> vm/sys/net/image/etc/s6-rc/dbus/type | 1 - >> vm/sys/net/image/etc/s6-rc/dbus/type.license | 2 -- >> .../image/etc/s6-rc/ok-all/contents.d/sysctl | 0 >> vm/sys/net/image/etc/s6-rc/sysctl/type | 1 - >> .../net/image/etc/s6-rc/sysctl/type.license | 2 -- >> vm/sys/net/image/etc/s6-rc/sysctl/up | 4 ---- >> vm/sys/net/image/etc/sysctl.conf | 4 ---- >> 18 files changed, 5 insertions(+), 75 deletions(-) >> delete mode 100644 vm/sys/net/image/etc/dbus-1/system.conf >> delete mode 100644 vm/sys/net/image/etc/s6-rc/connman/dependencies.d/dbus >> delete mode 100644 vm/sys/net/image/etc/s6-rc/connman/run >> delete mode 100644 vm/sys/net/image/etc/s6-rc/connman/type >> delete mode 100644 vm/sys/net/image/etc/s6-rc/connman/type.license >> delete mode 100644 vm/sys/net/image/etc/s6-rc/dbus/notification-fd >> delete mode 100644 vm/sys/net/image/etc/s6-rc/dbus/notification-fd.license >> delete mode 100644 vm/sys/net/image/etc/s6-rc/dbus/run >> delete mode 100644 vm/sys/net/image/etc/s6-rc/dbus/type >> delete mode 100644 vm/sys/net/image/etc/s6-rc/dbus/type.license >> delete mode 100644 vm/sys/net/image/etc/s6-rc/ok-all/contents.d/sysctl >> delete mode 100644 vm/sys/net/image/etc/s6-rc/sysctl/type >> delete mode 100644 vm/sys/net/image/etc/s6-rc/sysctl/type.license >> delete mode 100644 vm/sys/net/image/etc/s6-rc/sysctl/up >> delete mode 100644 vm/sys/net/image/etc/sysctl.conf > Won't we still need connman or NetworkManager or something to configure > Wi-Fi? Thank you for this excellent question. connman and NetworkManager are all-in-one tools for networking. They mostly provide a unified interface for the underlying stacks (wpa_supplicant/iwd, kernel networking stack, firewall, VPNs). I don't expect we can re-use such an all-in-one tool in the driver VM, as the driver VM is only responsible for one device and shuffling data from and to it. In the Wi-Fi case there is an exception because the device needs special configuration, with user input. In the future, I see wpa_supplicant as a candidate which can maintain Wi-Fi connections in a stateful configuration file, providing both a cli and a GUI which we could forward to the user. For more complex networking configuration, I would expect them to be done via the VM "graph", where an advanced user could build a chain of provider VMs which do 1:n multiplexing (the router I'm currently writing), n:1 multiplexing (something like Android's automatic switching between Wi-Fi, cellular uplink and cabled connections depending on network conditions), and VPN/Tor as a 1:1 provider performing some encapsulation. In this current patch series the spectrum router takes over the 1:n multiplexing that connman was previously used for. For the n:1 multiplexing needed for network devices with multiple interfaces, I expect to just use the next best one which receives router advertisements (which should be similar to the previous user experience with connman), but in this current patch series the n:1 multiplexing is not implemented. From what I can tell Wi-Fi was not a previously working feature, and supporting it in the future via wpa_supplicant would not be much more difficult, as we have tested the router in principle supports multiplexing multiple apps to one Wi-Fi connection.