Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3832860ybl; Tue, 21 Jan 2020 07:52:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxYtwZE7/ByRaXkzwgkoqvkyDXoeMk2l3wiydiLPsnhnKp6TAmaNcYAq9WZYup2Gf967if8 X-Received: by 2002:a9d:6d81:: with SMTP id x1mr4302681otp.9.1579621957784; Tue, 21 Jan 2020 07:52:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579621957; cv=none; d=google.com; s=arc-20160816; b=R6IAcyyDbyxZJ8Z0TblTvBUqwYQUcwrBm0sNk/08nMMWhdfIHhHncAAPKiXuuZzsex dOR3RrWsxwblr/4nskwYQ94shfX8J7BG6xa/eM15a56sPHpYNSbhJyLNdg5ISNNtep/7 kFM9PAx21CoSucdr/PvgxQ43JJrKHPx1hsDuk00xKDLlG/fXYTuzsl7OyGJo9846wVGL k8YoiDYsBlM8LvONUauIaAVxd4W2253KnJ5174/t+KZcmPldsUeSsqI8Z+qWhce/cobw aU/vrajrHzkFiHqRfHp298rvG8FXSL+dDJtMeiIsv+fjOFKwTNelSxq32fsS84/bPdJ6 shYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:in-reply-to :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=eMIlB257RM/m/+0lsubXpXw7AZgmiGqc6GHCz5AcBZA=; b=cHClD40yz6DZLbdkqT0Gt9ybCsrQDRElhQcx8khNW76SOiDrNSOD1T7UTxxukiph8X +ltRw+IlKg5oQBj53iUtxeT4gaUiVspDOSnLpv7nwstCgrnnQv5k5EsE/tQYSsdDMhgd 4cnJdXH9XYxI08/3m9vr2Dn3vc1WLcg9vat+c9c6+YXABZ+Od247dPD3f+IDi6ljrKQF xtiJ7p61mJhVJF6WTvTgQgfif8bTL+g5bYm4u3AiLlz/J5iL6aBLL7z/nZUU2wF/Qg3p r7b8VDnUJGJ1AL7nZ67GVsm++8FrqpTqCXZ+3mHjDAyn7h56K6YsiL1YD8WvON2uE7oq kIlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QN0UAwl5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m20si22308640otq.35.2020.01.21.07.52.25; Tue, 21 Jan 2020 07:52:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QN0UAwl5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729537AbgAUPvE (ORCPT + 99 others); Tue, 21 Jan 2020 10:51:04 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:22615 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729153AbgAUPvD (ORCPT ); Tue, 21 Jan 2020 10:51:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579621862; 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: in-reply-to:in-reply-to:references:references; bh=eMIlB257RM/m/+0lsubXpXw7AZgmiGqc6GHCz5AcBZA=; b=QN0UAwl5AehrxT0vXfV7O8ChRla+XexGcTmoR9VVvRfz0od0nUUyDPzXfAjoyWIvGJAVXX oposf+cPH3kb2bl6JwghodVDKRPoEsH0YGyZ/eXN4s4AvF8yQXO5xo5kR/hXAttHGY339Y iUxdDToc/xuD6byI7RvNqVWXMBpyDDM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-356-rcG6IqFPOdWH8joOKQsrfQ-1; Tue, 21 Jan 2020 10:50:59 -0500 X-MC-Unique: rcG6IqFPOdWH8joOKQsrfQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 7248618B5FA0; Tue, 21 Jan 2020 15:50:57 +0000 (UTC) Received: from localhost (ovpn-117-223.ams2.redhat.com [10.36.117.223]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8A3CC845C7; Tue, 21 Jan 2020 15:50:54 +0000 (UTC) Date: Tue, 21 Jan 2020 15:50:53 +0000 From: Stefan Hajnoczi To: Stefano Garzarella Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jorgen Hansen , Jason Wang , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-hyperv@vger.kernel.org, "Michael S. Tsirkin" , Dexuan Cui Subject: Re: [PATCH net-next 0/3] vsock: support network namespace Message-ID: <20200121155053.GD641751@stefanha-x1.localdomain> References: <20200116172428.311437-1-sgarzare@redhat.com> MIME-Version: 1.0 In-Reply-To: <20200116172428.311437-1-sgarzare@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="F8dlzb82+Fcn6AgP" Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --F8dlzb82+Fcn6AgP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline What should vsock_dev_do_ioctl() IOCTL_VM_SOCKETS_GET_LOCAL_CID return? The answer is probably dependent on the caller's network namespace. Ultimately we may need per-namespace transports. Imagine assigning a G2H transport to a specific network namespace. vsock_stream_connect() needs to be namespace-aware so that other namespaces cannot use the G2H transport to send a connection establishment packet. --F8dlzb82+Fcn6AgP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEhpWov9P5fNqsNXdanKSrs4Grc8gFAl4nHd0ACgkQnKSrs4Gr c8jZrQf/TRB2zBeMXsyYPUoUt2OUY/g4u8e60E+RzcZ4/AxMVlcoaGKuKtNk4DzL Z+owz+Skn/cI4fcj0XUJrs8/O9Oqwtng0PXbIUE2sUxgd+xkB9j/zMpnwUwAHejI M67cUcW7U6bo91TkPyp6hhjurVeMTqhxs2FYiDXuOWYxEAJwK+Rot5714FbNqujY A7/lzlRk8GtJRI5OtH+IQaaE3y7DXzYZafwt/Vkr+LJHGSDtLoImGiziGgj/F4YB SHxT1+d5fu9xiugvjiQFsA8l6uZjOQSQUXLbjLk3bRWRtRVV9Oa64pufh8B5yI0J MEc1knCZqHNXlMS7KlHgjY7zhJcsnw== =lL1o -----END PGP SIGNATURE----- --F8dlzb82+Fcn6AgP--