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=XvBbQD4a; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by passt.top (Postfix) with ESMTPS id BB1465A0625 for ; Wed, 17 Dec 2025 21:01:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1766001695; 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=eQkzZgG+taHdKRCn7/4isg2a9QEepijeh5yoZskr7dE=; b=XvBbQD4arwggaiFFyIs7pPXiKG2sHS09CfuMvMDa5LQHkHYqwN9TAC093qjBhcu1EBGOfR BhdpQA8MshqDI+63btiByvkPectGSek3xacjuP6ud/956hsNH4mHasgKsEw9ZqLjjipshB IAPQVhHgPDE5UhYhLfFtvrD3U8KElJY= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-219-LqZAB-8bM1aQGn_8DukTPw-1; Wed, 17 Dec 2025 15:01:33 -0500 X-MC-Unique: LqZAB-8bM1aQGn_8DukTPw-1 X-Mimecast-MFC-AGG-ID: LqZAB-8bM1aQGn_8DukTPw_1766001693 Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-4ee27e24711so109278321cf.1 for ; Wed, 17 Dec 2025 12:01:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766001693; x=1766606493; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=eQkzZgG+taHdKRCn7/4isg2a9QEepijeh5yoZskr7dE=; b=kkPIQCgQbqJMW8jV2Y3T4bVjSu/gtModFNdoS859vrbD50HPOzJgYYsUmXtnq/gBNi aCc6UT621A7zKoC7X1DtjJno0HHZgIUFWGOQtrYwjqRb7oqbYwqGwCLz6fzsLIv1qEQt woxR//y0Dd5tfwy4XZ+fEMWC5aEbxhk9D0+62e3P8PE661Q1nTS0Fokq+CDe/qOhgKYr GeUXmfMncZg6Vt/jNHpzVIerhi2uUc+HKkDW/tHtlepA4klYJUqpqv6MIJc5jENB3RKV PbGVcHhb+cD+dPECD0GdBu4GnuyCpRkkyBjOIajmmcWECqS6dr4AUGU/J7ZGIDjI4UCC dBBw== X-Gm-Message-State: AOJu0YybOvIxvnjnsupciEmLTuna5OHBzDZtjX3jAudgvYD4tP+p/YI9 SCck5+ATWDX1ULUI/AfaTvbXGWjdKLpgFurlwWfLW5tMpZ0Zo4PO8M5V3U1jq56VJDlou5xRVmr JXg+ugm6GACR+WVGnDsn5xZ+aAYvXvhNMpUSdaxHFEbKds79W2LWL+w== X-Gm-Gg: AY/fxX537MyEu9qE3i8OE1ISRoX6UuAHAy/NZgdcZHNfquRoZ+mSxw6zTNn1bsGpEf6 dsym4BnBfNxwDoPvws02vR3e/H1jWRHw58JVWdwIUyB0KfbtxJNjWqNHPZNz5z5IPai3gQGDnN7 Vpy5hv9zkF4PITWZIqTn8u0rYTV14Iti7/AvMJtO1rY0oEPvyxwmOkvHOuJ8Vu2maDib8TIiWDz LkkvQE4o0w0Og+reNxWaaFoFL56Ftj9Fgo0o2HDhKWeDYt5ncJxlPaT2MA+fNslP/9eEudMtPbd sOn6Bp45Gym3uJt8BkmClIYHXihnVjRVkWCShvjqvou4BthMDORXJpZM3dTnZpgJHNexk8d/uI+ fIFk8+dkxQoH2Pv05z89LMGufg99mZyQiSxnWE+lWfDtIRoDVSTZ1Qp9rRhwXHNYH/DDazSNCvV Aedmw7 X-Received: by 2002:a05:622a:2b0f:b0:4ed:ee58:215 with SMTP id d75a77b69052e-4f1d0538c38mr248377991cf.35.1766001693031; Wed, 17 Dec 2025 12:01:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYngQcWnd4jzFT1Nxsvo9OTZLlqKSO5xgxXzUOmPM4IIOXhoWeJTHNKIfolA/bbPwiuPOn1w== X-Received: by 2002:a05:622a:2b0f:b0:4ed:ee58:215 with SMTP id d75a77b69052e-4f1d0538c38mr248377251cf.35.1766001692316; Wed, 17 Dec 2025 12:01:32 -0800 (PST) Received: from [192.168.2.15] (lnsm3-montreal02-142-116-222-198.internet.virginmobile.ca. [142.116.222.198]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4f35fdba268sm1315841cf.32.2025.12.17.12.01.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Dec 2025 12:01:31 -0800 (PST) Message-ID: Date: Wed, 17 Dec 2025 15:01:31 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Thoughts on interface modes / multiple guest addresses To: David Gibson , Stefano Brivio References: <20251217012936.5aefec93@elisabeth> From: Jon Maloy In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: e1QOq8qr45NavedxuCZizZeOR3Q26k1sKOCAYRenP1o_1766001693 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID-Hash: ICP4B5YNIG4F24THD45ZKU43RXNXB47X X-Message-ID-Hash: ICP4B5YNIG4F24THD45ZKU43RXNXB47X X-MailFrom: jmaloy@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 2025-12-16 21:01, David Gibson wrote: > On Wed, Dec 17, 2025 at 01:29:36AM +0100, Stefano Brivio wrote: >> On Tue, 16 Dec 2025 16:53:49 +1100 >> David Gibson wrote: >> >>> Hi Jon, >>> >>> As discussed on the call yesterday, I've written up my thoughts on >>> what a bunch of the address semantics should be. Turns out I'd >>> already done some of this at: >>> https://pad.passt.top/p/InterfaceMode >> >> Two general comments: >> >> 1. local mode is already implemented, and some things such as the >> interface name ("tap0") are already defined, see man page and >> 'pasta -- pasta --config-net ip a' > > Yes, I'm aware. The two modes have the "normal" and "local" local to > indicate the existing modes they're more similar to (neither is > identical to current behaviour). Another point I left out is that > this is intended as an endpoint to aim at. Getting there I expect to > involve extra stuff for compatiblity along the way. > >> 2. I think it's more relevant to define the basics of how one switches >> between the existing local mode and a mode where we copy addresses >> and routes (as they become available on the host), rather than >> defining every single detail of these modes. > > Oh.. right. I guess I did't make this clear: these are modes set by > the command line (details TBD), we never switch between them at > runtime. They kind of have to be, because which mode we're in affects > how we respond to runtime changes. > >> In these terms, I think it would actually be helpful to *avoid* >> seeing them as separate modes. If there's no host connectivity, we'll >> start in local mode, and switch to the other mode as we get addresses >> and routes configured... just to switch back to the previous mode if >> we lose them. > > The whole point of all-interface mode (better name suggestions > welcome) is that the guest's routing configuration *doesn't* change, > even if the host's does. > > Advantages: > * The host can have whatever source-dependent, multi-path, bizarro > routing configuration, changing as often as it likes and we (and > the guest) don't care. Guest routes to the host, host routes > onward from there. And the other way around, the guest should be able to set up whatever he wants if that is his choice, without affecting the host. Maybe even multiple interfaces, for whatever reason that might be. We could have two modes: "transparent" and "opaque" In opaque mode we get basically what you describe above, plus that we allow the guest to add new addresses/routes in runtime. So, we keep the multi-address configuration and and the nameaspace side subscription, but block host-side subscriptions in this mode. Conversely, we are fully open to host-changes in transparent mode, we subscribe for host-side changes, forward those to the namespace, However, we don't allow the guest user to manipulate anything in run-time. Hybrid modes might be possible, e.g., that we allow one stable link local address even in transparent mode. Would that make sense? > * We have a consistent (link local) way of addressing the host > regardless of what changes happen on the host side > * We have the freedom to allocate link-local addresses if we want > them for any purpose > Disadvantages: > * No access to external peers via link-local address > * Guest's routing setup is visibly different from the host's (so less > L3 transparent) > > I actually think that's a more useful and robust way of operating for > most use cases and we should eventually make it the default. > One-interface mode is for the use cases where those disadvantages are > fatal. > > There is another possible option here: present multiple interfaces in > the guest, one for each host interface. In transparent mode that would be a natural further step. ///jon > I'm not including it, since > it's basically equivalent to having multiple pasta instances in > one-interface mode. To implement this, we'd basically have to > implement one-interface mode first. > >> So does it really help to have "modes" instead of just considering >> what addresses and routes are we going to delete, and when? Because >> that's what we'll need to do anyway (and that's what I think defines >> the design). > > I haven't seen a way to define coherent semantics that cover all the > use cases without introducing two modes. The overlapping constraints > here are: > > * With passt or !--config-net, we can't fully control the guest's > networking config. We both can't set things with arbitrary > precision, and we don't have a way of forcing an update when things > change. > * If we're dealing with multiple host interfaces - either > concurrently or to a lesser extent over time, then there's no way > to coherently map host-side link-local addresses to the guest. > >> I see that this is not an explicit use case in Jon's list (which I >> still have to review), but it's one of the most two fundamental ones >> I think (that, and Podman Quadlets), also nicely described by a user >> at: >> >> https://github.com/containers/podman/discussions/22737#discussioncomment-9478727 > > Ah, yes, that is another case. I think it would work out equivalent > to one-interface mode attached to a dummy0 interface on the host. So, > it should be fairly easy to implement in terms of one-interface mode, > just pretending a dummy0 existed even if it doesn't. > >>> I've now updated to cover some more things, and considering the >>> possibility of multiple guest addresses.. Turns out etherpad doesn't >>> really do tables, so it's two sections for the two suggested modes, >>> with matching subheadings. >> >> It does, but I disabled the plug-in as you reported an issue which >> turned out to be https://github.com/bitwarden/clients/issues/17598 >> instead, and I was trying to sort out other possible reasons. >> >> I just re-enabled it, tables are available from the toolbar, there's >> an icon just left of "Font Family". Note that it's still beta: >> >> https://www.npmjs.com/package/ep_data_tables >> >> and it has a couple of glitches. I just found one (which I didn't debug >> or report yet): don't start a page with a table, always write something >> before, otherwise it gets duplicated every time you load the document. >> >> Other than that it looks reasonably robust to me, maybe quickly try with >> a test pad first but I think it should be usable. > > Great, thanks. >