Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp315997rdb; Mon, 18 Sep 2023 16:37:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhXCw7weM99J478XMKXjPJoyHK7E70Af9cNValz+xs8HAtTFLG4fyce3Sp2jIU/NGmY4/g X-Received: by 2002:a17:902:d4ca:b0:1c1:fa12:5c1 with SMTP id o10-20020a170902d4ca00b001c1fa1205c1mr13864875plg.55.1695080275199; Mon, 18 Sep 2023 16:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695080275; cv=none; d=google.com; s=arc-20160816; b=RQnG0CnO+ggS4phNR/29G0YFu7pE7KUm059gb8B3lBXBsduRM+eq756ArZLFA4gr0x A8D2Ush11cSyhcmKXOMF3rBb9KBs8d+vJO6b1yQA1VgEePNm01JJJtmUjkt/hEcDXVHv Yd+SqbxXRIEOlhAp1gQp4WMwTF+xAfC5mxjxsyImxp4f/MrMy6uJnbXvc5BV2HIuVQeB 3LRo3Ryer+ay/v3PEvpKRuJy0unceP+e3FlSCJby6qqaQvrnHHvm3/5g8nuBCaOqmgg+ W0vG2n5cw1fmqIlFyuMmJ6YVnjX5LZkA2Jk2aaU97Hl/3iLyEcNL6JXLI33NjCFwAuCF WaBQ== 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=4mO3T2+ldSwa/yZAn9slxFEvO1YZrGLXM+EycGDV9no=; fh=mgDOnflgqBhki4srQQbjlV/AUGmKs0Gt5yx+zXhaHYo=; b=u4jFGNxD1qxZTC4hXOK8F2FQqXHItnu9hZq51Gk46d7PtPJCCMsVvxAysWgNeOuTs+ eb8jiK261atiyAAbOs+lPdmNBUoWcOUE9O8E37S7vTUmC+wPGec+1+Gr5lj7hilXp7uJ faNVpOsMp+T3A5862FLZcV45VgtGcd2MYyl2aEK31bxR+U8AfenFdAj8X1N6p4bomcAQ j/SExV9NBr38YguyhKyfei/hM5sfolgKhEH2o5xCFgffwayZdjoqhnmx99i0+I639MvJ sJ5zAWtpHChisU0aaf55FhJKsjF/j1yvgG1PyWwOjV74MQKzt+YzptLIgR1bxyD87Uqe N2qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AsvLOo3g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id q5-20020a170902f78500b001b3d27ca12fsi8888214pln.207.2023.09.18.16.37.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 16:37:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AsvLOo3g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8919F815D7F6; Mon, 18 Sep 2023 10:28:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230215AbjIRR2p (ORCPT + 99 others); Mon, 18 Sep 2023 13:28:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbjIRR2o (ORCPT ); Mon, 18 Sep 2023 13:28:44 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07E1BFE for ; Mon, 18 Sep 2023 10:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1695058069; 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=4mO3T2+ldSwa/yZAn9slxFEvO1YZrGLXM+EycGDV9no=; b=AsvLOo3gNuiU+ZfCYuVzVJdoXxwNT0g2MdFQjHhpc6/Z1pVdfpvVr3qCorlKZLnCsYRu6k /9MgpIcpz1yhJBqJ0nuqzPnSnVZUvOTnyioMWhovxQmFmj5ppdIj+qHXNTGztZgR/CpRVJ n3001azs7fiWBUqL9Wop+MrX08B9Oms= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-518-4w7J8GWmO8eDrBcX3Aifmw-1; Mon, 18 Sep 2023 13:27:47 -0400 X-MC-Unique: 4w7J8GWmO8eDrBcX3Aifmw-1 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-99388334de6so337495066b.0 for ; Mon, 18 Sep 2023 10:27:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695058066; x=1695662866; 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=4mO3T2+ldSwa/yZAn9slxFEvO1YZrGLXM+EycGDV9no=; b=N8Nb7+uu19FcQH1RSUJNqGa/ifjjYsdQgsmEIPcWOeD1xAYXDs/mAiClkgotB+bB+w 4RqFeTzJFXKlrOv9lhSrmJkc1RiRkUD9huZKBJnIZcaXLAggb6utYsnkmCw4Zef9LirR i1uxpkHI39fMJHr6ytcQ1g++bE5Ix1V2W105XlEq9Hx2vwb0CnD2YuiFSBlj7wXJT4pV pXnuta3k2eljwVEX2t/6FfsyUCPe0bheFB1uByYufYVuNgXE9XgM+ILNF42TmChG1p0s KYznI+f10vNjohB66yD9EoR+/gP/qfg+pnQn8WFCDTFSPclYY46eB3VOi97dCOhddwpb q1xw== X-Gm-Message-State: AOJu0YxAo0+P55bS0QXovPwAyZbH/MHvI6FaY+3R3XJk2oUC25WIsS3G asbgQqAougKveZww51dwnRRiLyzOIsQ521Nfecv08IuMXlkmD5sbPq23RccOIY6h0vUDk2fQOkF 2szb3rty8ZjN0vfo7o+llcHi5 X-Received: by 2002:a17:906:7685:b0:9a2:1e03:1572 with SMTP id o5-20020a170906768500b009a21e031572mr8451775ejm.19.1695058066164; Mon, 18 Sep 2023 10:27:46 -0700 (PDT) X-Received: by 2002:a17:906:7685:b0:9a2:1e03:1572 with SMTP id o5-20020a170906768500b009a21e031572mr8451755ejm.19.1695058065892; Mon, 18 Sep 2023 10:27:45 -0700 (PDT) Received: from redhat.com ([2.52.3.35]) by smtp.gmail.com with ESMTPSA id rp15-20020a170906d96f00b009a1b857e3a5sm6739045ejb.54.2023.09.18.10.27.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 10:27:45 -0700 (PDT) Date: Mon, 18 Sep 2023 13:27:41 -0400 From: "Michael S. Tsirkin" To: Arseniy Krasnov Cc: Stefan Hajnoczi , Stefano Garzarella , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jason Wang , Bobby Eshleman , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@sberdevices.ru, oxffffaa@gmail.com Subject: Re: [PATCH net-next v9 0/4] vsock/virtio/vhost: MSG_ZEROCOPY preparations Message-ID: <20230918132726-mutt-send-email-mst@kernel.org> References: <20230916130918.4105122-1-avkrasnov@salutedevices.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230916130918.4105122-1-avkrasnov@salutedevices.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 18 Sep 2023 10:28:52 -0700 (PDT) On Sat, Sep 16, 2023 at 04:09:14PM +0300, Arseniy Krasnov wrote: > Hello, > > this patchset is first of three parts of another big patchset for > MSG_ZEROCOPY flag support: > https://lore.kernel.org/netdev/20230701063947.3422088-1-AVKrasnov@sberdevices.ru/ > > During review of this series, Stefano Garzarella > suggested to split it for three parts to simplify review and merging: > > 1) virtio and vhost updates (for fragged skbs) <--- this patchset > 2) AF_VSOCK updates (allows to enable MSG_ZEROCOPY mode and read > tx completions) and update for Documentation/. > 3) Updates for tests and utils. > > This series enables handling of fragged skbs in virtio and vhost parts. > Newly logic won't be triggered, because SO_ZEROCOPY options is still > impossible to enable at this moment (next bunch of patches from big > set above will enable it). Acked-by: Michael S. Tsirkin > > I've included changelog to some patches anyway, because there were some > comments during review of last big patchset from the link above. > > Head for this patchset is: > https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=f2fa1c812c91e99d0317d1fc7d845e1e05f39716 > > Link to v1: > https://lore.kernel.org/netdev/20230717210051.856388-1-AVKrasnov@sberdevices.ru/ > Link to v2: > https://lore.kernel.org/netdev/20230718180237.3248179-1-AVKrasnov@sberdevices.ru/ > Link to v3: > https://lore.kernel.org/netdev/20230720214245.457298-1-AVKrasnov@sberdevices.ru/ > Link to v4: > https://lore.kernel.org/netdev/20230727222627.1895355-1-AVKrasnov@sberdevices.ru/ > Link to v5: > https://lore.kernel.org/netdev/20230730085905.3420811-1-AVKrasnov@sberdevices.ru/ > Link to v6: > https://lore.kernel.org/netdev/20230814212720.3679058-1-AVKrasnov@sberdevices.ru/ > Link to v7: > https://lore.kernel.org/netdev/20230827085436.941183-1-avkrasnov@salutedevices.com/ > Link to v8: > https://lore.kernel.org/netdev/20230911202234.1932024-1-avkrasnov@salutedevices.com/ > Changelog: > v3 -> v4: > * Patchset rebased and tested on new HEAD of net-next (see hash above). > v4 -> v5: > * See per-patch changelog after ---. > v5 -> v6: > * Patchset rebased and tested on new HEAD of net-next (see hash above). > * See per-patch changelog after ---. > v6 -> v7: > * Patchset rebased and tested on new HEAD of net-next (see hash above). > * See per-patch changelog after ---. > v7 -> v8: > * Patchset rebased and tested on new HEAD of net-next (see hash above). > * See per-patch changelog after ---. > v8 -> v9: > * Patchset rebased and tested on new HEAD of net-next (see hash above). > * See per-patch changelog after ---. > > Arseniy Krasnov (4): > vsock/virtio/vhost: read data from non-linear skb > vsock/virtio: support to send non-linear skb > vsock/virtio: non-linear skb handling for tap > vsock/virtio: MSG_ZEROCOPY flag support > > drivers/vhost/vsock.c | 14 +- > include/linux/virtio_vsock.h | 10 + > .../events/vsock_virtio_transport_common.h | 12 +- > net/vmw_vsock/virtio_transport.c | 92 +++++- > net/vmw_vsock/virtio_transport_common.c | 307 ++++++++++++++---- > 5 files changed, 348 insertions(+), 87 deletions(-) > > -- > 2.25.1