Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp314592rdb; Mon, 18 Sep 2023 16:33:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwhvTdxo1R5gBW5g/jZ3Aq9d4h8IYtXRxaxfcogF/HOav9QPf3hrg/DbnI+S+4p6RPPnGG X-Received: by 2002:a17:90a:d485:b0:26d:2b1d:1982 with SMTP id s5-20020a17090ad48500b0026d2b1d1982mr7671646pju.24.1695080025708; Mon, 18 Sep 2023 16:33:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695080025; cv=none; d=google.com; s=arc-20160816; b=RuxTE1VcBAtEgrdRp10ulprMy62wumu+g/bfVglJynOprRZAVAf3lyWGWydqykKfBq JT9h+xK7ZeUUgRsU7COa88iCZlmAJn4ccJQlMP4TAf17wjieRxTyi1Hq0vFdD1VwaSNX DNyCn9sa+7HMrNeKkGzdnIQiVbxUh/H35Raw/EdiIsORZpx7bUCPoyD8CAtgZXtWsC3G Mys5IrVkREr3a/SaPYSH8fnOWnYXtRTnIwFDZi4+GMaKSCV5hYMKvi4jwTpBPfVcHE7n QC7QieYdZv1XxGnOTnQy+TJDqS66Zp9YZyEXxcnWa9u4Q91I0tX0Qz6u2j3XouUlaLle 0kfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-filter; bh=0o7hfC4+F2euSGNP8krkD3xbGeD5dgDDhH9/E/Lq2pU=; fh=2fPoUoc9gDMg6QWK4RfN1YkmJX//+lOmaUj5rvn/A50=; b=YIFpWcO12WOuOql4ddfUwgB+1XCYrvYJBS8bSX3fvX9VhPpr37w2tMUevL1asd7cZK ZijAwyPnIvnrH0KC+42Kv8tG9H+q+VKnhqwaLZjmcCGiKPj2aHrrq34Ok2zzmR/dAs3x 48EtUVY5kG9ZQ/TkO+/WrNN2Byrb5m3ZzplSpilH7adjByLutwwpbOK0+gSCkrPWnyxE xAxJFyehwH2hvUPjSppurIe0ZDn7h6rlTHVFM5sX6R/qJcPP4/vzTC/zq+kLGOYdNbxJ 7aI5tXcx2ErGdWp29uwDjF0q6KFPFOIA3iz+Y6RgTUrBB0t/ZwIvX59Mc/lsfaGcFrmj 9SqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=alLQUDby; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id h17-20020a17090aea9100b00274bdd908dasi4892831pjz.97.2023.09.18.16.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 16:33:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=alLQUDby; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=salutedevices.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 34B42808BE53; Mon, 18 Sep 2023 10:03:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231526AbjIRRDa (ORCPT + 99 others); Mon, 18 Sep 2023 13:03:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231520AbjIRRDR (ORCPT ); Mon, 18 Sep 2023 13:03:17 -0400 Received: from mx1.sberdevices.ru (mx2.sberdevices.ru [45.89.224.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3D88CCA; Mon, 18 Sep 2023 10:02:52 -0700 (PDT) Received: from p-infra-ksmg-sc-msk02 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id 391A1120005; Mon, 18 Sep 2023 20:02:49 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru 391A1120005 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1695056569; bh=0o7hfC4+F2euSGNP8krkD3xbGeD5dgDDhH9/E/Lq2pU=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type:From; b=alLQUDbysr3L8dz+yeBvWT/+riB6RuYqj7NgmEpmNffdudRO0n1tnLS3FhR/bUSzj 7xupnALTsYbWRHcoHWJBLuj/wWLdObKCAXFtGT5Pq+pjt0Sj9X8a3YYcCwftuBhPVZ N4GKOnCVOsdacrg3XxJ3rg8Gurb/r5JXe8AHsKv/TmDCFY7dKzJqoyfs79P+cdbkUz 9y49nVvJ52TdBH/W6r4QZCvBd5V4HH1TZxbxMUOH0kLzrjzqB23b5gIrTh3TLRJXE4 msqgEqiqmlu3mrokmPsaplWm9+V2JGxws9bCJbYcu/OTHHAiSphOnz/O4/Znwunr0p 6Nqhqfn27mdKQ== Received: from p-i-exch-sc-m01.sberdevices.ru (p-i-exch-sc-m01.sberdevices.ru [172.16.192.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Mon, 18 Sep 2023 20:02:48 +0300 (MSK) Received: from [192.168.0.106] (100.64.160.123) by p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Mon, 18 Sep 2023 20:02:47 +0300 Message-ID: Date: Mon, 18 Sep 2023 19:56:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH net-next v9 0/4] vsock/virtio/vhost: MSG_ZEROCOPY preparations Content-Language: en-US To: Stefan Hajnoczi , Stefano Garzarella , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "Michael S. Tsirkin" , Jason Wang , Bobby Eshleman CC: , , , , , References: <20230916130918.4105122-1-avkrasnov@salutedevices.com> From: Arseniy Krasnov In-Reply-To: <20230916130918.4105122-1-avkrasnov@salutedevices.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [100.64.160.123] X-ClientProxiedBy: p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) To p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 179934 [Sep 18 2023] X-KSMG-AntiSpam-Version: 5.9.59.0 X-KSMG-AntiSpam-Envelope-From: avkrasnov@salutedevices.com X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 530 530 ecb1547b3f72d1df4c71c0b60e67ba6b4aea5432, {Tracking_uf_ne_domains}, {Tracking_from_domain_doesnt_match_to}, 100.64.160.123:7.1.2;p-i-exch-sc-m01.sberdevices.ru:7.1.1,5.0.1;git.kernel.org:7.1.1;lore.kernel.org:7.1.1;127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;salutedevices.com:7.1.1, FromAlignment: s, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean, bases: 2023/09/18 14:42:00 X-KSMG-LinksScanning: Clean, bases: 2023/09/18 16:49:00 X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2023/09/18 14:09:00 #21917825 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email 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 (pete.vger.email [0.0.0.0]); Mon, 18 Sep 2023 10:03:44 -0700 (PDT) Hi Stefano, thanks for review! So when this patchset will be merged to net-next, I'll start sending next part of MSG_ZEROCOPY patchset, e.g. AF_VSOCK + Documentation/ patches. Thanks, Arseniy On 16.09.2023 16:09, 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). > > 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(-) >