Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4034751rwl; Tue, 28 Mar 2023 01:23:59 -0700 (PDT) X-Google-Smtp-Source: AKy350YGZb+oL7RVRrLs66KaiobQsoeOsXXEopzy0OBDTT8mYNeUUtsFOs9rK4YO7mxkqaCIRD0A X-Received: by 2002:a17:906:7fd1:b0:86f:64bb:47eb with SMTP id r17-20020a1709067fd100b0086f64bb47ebmr15481046ejs.3.1679991839060; Tue, 28 Mar 2023 01:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679991839; cv=none; d=google.com; s=arc-20160816; b=Cfm2SKcSfTKMQKQKjO7fjGxf1SDf1OkCPfl1KumU47eq8mZj3WSuJ9LuQozqjX5C9Q B4MFjLDyI2sQyj4Yb+Ms1NyOEkT9T/vHxtok+sGrG+Cyn8UO2qPAGmXJQ8iEp57EfTDo p/hRF0ScdzlSpuhms5EbXSl691iSy1RrrcQV+epYiahMY1R8nHRYCwNYTc6sRWgD4wOM DubLFXrd9Tt8i6+v+LeBIZwmDZdYTxMsIk9EvXhvnQDRJQqm4wmeFfwm+xDjFyXBI94k yuvE7XGKg0wItaX3YFb5nykkyIAOyL7aWJfYa5+tTtr1oBLArXcmS6oGon362/Uo9lW0 /ffw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Q3X0O+/TM7LVotJgrmc2xoQ/T0kA0UQLhsWOW/x515A=; b=LuoBbJSVg5h1NdqeRsMXUsffUxpVTux4bg3GNyTQHNBGWnFmzPgZ00M/eFMZsjc8Z6 Y5zL7NrvyRgKK6Gq1huuZvUIQdI14kB+PQO/WfYNKw6R7D+on3tPXS4urFIZ8dy4C4FC CTWYM/KYW4gSwR0Gv8xgPES4KJtYi28q3b5AaGfQ/cNhBXa4PCXcJjccXZauGQvKU8aG nDJPQeyaTa/9QAP72uwNx4BWTbxl8yP3Mnvo80luu81BrzkNF4fBhbnILWyZYcv7Simj HSrlH+yNIZy0c6qouNHXvEjGyC0NjMvkbK6sulm7yBTkkwRDplwDiZ97DWzT2vKKZItW Lmcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RzcuhHor; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a1709064c8700b009220173aa75si16070457eju.456.2023.03.28.01.23.34; Tue, 28 Mar 2023 01:23:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=RzcuhHor; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230095AbjC1IVD (ORCPT + 99 others); Tue, 28 Mar 2023 04:21:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230325AbjC1IU7 (ORCPT ); Tue, 28 Mar 2023 04:20:59 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78A791BC6 for ; Tue, 28 Mar 2023 01:20:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679991612; 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=Q3X0O+/TM7LVotJgrmc2xoQ/T0kA0UQLhsWOW/x515A=; b=RzcuhHor46+fs9wiO9GR7qynLKoFSYx6Gf33Y5qrck2xPn5bhkBPwLouM6p4DxViUEGEi2 EHXmm9K2/hAv8nQVr8JdbDcsofJiarvibfgdjasHMQ5FpLuo2O5n6ZsuVp7EkQhf6Alcql t3wUp1ki5vjaNlEUxE1Ln7kW9WjsdJM= 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-675-2wfgOGuIMS6VEfo-WAD1aA-1; Tue, 28 Mar 2023 04:20:11 -0400 X-MC-Unique: 2wfgOGuIMS6VEfo-WAD1aA-1 Received: by mail-qt1-f199.google.com with SMTP id s4-20020a05622a1a8400b003dbc6fc558aso7570223qtc.3 for ; Tue, 28 Mar 2023 01:20:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679991611; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Q3X0O+/TM7LVotJgrmc2xoQ/T0kA0UQLhsWOW/x515A=; b=EpDACdmchm8KaXUby6HuBjrejFgO2yp9gLRpiMjN69FH/LdjoEHvdMI+Ez5pNMs2ms RkOec/T492y3jr7hvgfiVxmioeS3aJdYqkKnEgchbdOH7DNjVIDebr2RQCX/lmazwAvX JKnEnpeLr/jl/wV+1socm1dl1cWZhI0idfqt/fwvrjBsvygGYAdFzFW2JPM1iUWk4jL5 S7qS+Xa0ZDsj7QSF/eV399saCGXbpT2OjvpXsM8vjkbRMUkGzTF0f/Uj6p/VHbbgYVAa 4sGlHINF4liZZTpcbUogfVmCDpHPHV7TntAGznBLUoPUdjosu4Kdc7G+Nw+tUbZDg1ay zGSQ== X-Gm-Message-State: AAQBX9e2yzno+YXASJoQmhsXuBfdfyqBOQXF3GYwUjnqdWGnnuCFC6Ud wVrvMS4ZEFofxHtS0EumJ6gGdhhENy24dW2xO+syFNDyG1UvuMvN3mcpRNIrQ4frNh9rceOW3kB R1FcjWAB6zveEc3c/JnP1RyTY X-Received: by 2002:a05:622a:118a:b0:3e4:dcb4:162 with SMTP id m10-20020a05622a118a00b003e4dcb40162mr17628915qtk.4.1679991610933; Tue, 28 Mar 2023 01:20:10 -0700 (PDT) X-Received: by 2002:a05:622a:118a:b0:3e4:dcb4:162 with SMTP id m10-20020a05622a118a00b003e4dcb40162mr17628888qtk.4.1679991610700; Tue, 28 Mar 2023 01:20:10 -0700 (PDT) Received: from sgarzare-redhat (host-82-53-134-98.retail.telecomitalia.it. [82.53.134.98]) by smtp.gmail.com with ESMTPSA id 4-20020a05620a048400b007468bf8362esm11708565qkr.66.2023.03.28.01.20.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 01:20:09 -0700 (PDT) Date: Tue, 28 Mar 2023 10:20:01 +0200 From: Stefano Garzarella To: Bobby Eshleman Cc: Stefan Hajnoczi , "Michael S. Tsirkin" , Jason Wang , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrii Nakryiko , Mykola Lysenko , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Shuah Khan , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH net-next v4 1/3] vsock: support sockmap Message-ID: <6eyspnma2esx4nzi2kszxkbuvh3xjb2g4nuhvng6tkvtp3whn6@hpyehyt6imdn> References: <20230327-vsock-sockmap-v4-0-c62b7cd92a85@bytedance.com> <20230327-vsock-sockmap-v4-1-c62b7cd92a85@bytedance.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20230327-vsock-sockmap-v4-1-c62b7cd92a85@bytedance.com> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 27, 2023 at 07:11:51PM +0000, Bobby Eshleman wrote: >This patch adds sockmap support for vsock sockets. It is intended to be >usable by all transports, but only the virtio and loopback transports >are implemented. > >SOCK_STREAM, SOCK_DGRAM, and SOCK_SEQPACKET are all supported. > >Signed-off-by: Bobby Eshleman >Acked-by: Michael S. Tsirkin >--- > drivers/vhost/vsock.c | 1 + > include/linux/virtio_vsock.h | 1 + > include/net/af_vsock.h | 17 ++++ > net/vmw_vsock/Makefile | 1 + > net/vmw_vsock/af_vsock.c | 64 ++++++++++-- > net/vmw_vsock/virtio_transport.c | 2 + > net/vmw_vsock/virtio_transport_common.c | 25 +++++ > net/vmw_vsock/vsock_bpf.c | 174 ++++++++++++++++++++++++++++++++ > net/vmw_vsock/vsock_loopback.c | 2 + > 9 files changed, 281 insertions(+), 6 deletions(-) LGTM! Reviewed-by: Stefano Garzarella Thanks, Stefano