Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4296883rdb; Thu, 14 Sep 2023 19:27:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEN3njB1/uo6nu8jgSPzGs/CJxKjC7dXCkaZ3vIGbEYZTEv15LCkzxbsYxQBG6b6xfuXa0h X-Received: by 2002:a17:902:7d8b:b0:1bb:3979:d467 with SMTP id a11-20020a1709027d8b00b001bb3979d467mr365522plm.63.1694744835236; Thu, 14 Sep 2023 19:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694744835; cv=none; d=google.com; s=arc-20160816; b=Vgxi8/GeF6qSzv4z7kveKBZeMruTxUmpr2mKvJk/80tinNB6kXLZ1+hHj9iejCWTvS XGxVsNJpgnBpn7hj0eCCAgj58IXa0UuT4g3b7n2DbonkxK6XK8E5or90zhVSpytCvQGt PqjJPY6RLkKHHuwCoWsCvZBRuPzZsV/TiS42vPkkFu5Q7AmUdwklVtT69ddn03DSdP+j sQ2MI5wbuREskhvQKMWwc3f7rNd2TdKo/X0ky9qDhFG8h14yP/9oCHsZfoVNLPej6BOR Wqx343n9d96ODxyq/6HyltCIQmGKqZBgFPS67lBqR8v+vRY6x+UFfs9Q6lkIwbGcAVHP Uzhg== 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=yHudOf8iuVH8gSyXltnig2N3UnhuMoM7BMALuIknbpk=; fh=JEq7ZyqHwnKMAbPjHbEHIOO1u1YxTWxtQlCbJmwG+xw=; b=Z7bCog2a8EEtNww6XR8QXpvHKz/8qWOh1eM0Q+kxK36iBEElV0s+LTk8v31fxXtb3m nboN0wQ4UbUFs5TGIOz24aTFAzDTFF8n8b9Wm6iAu4pA0g4j2jcrCXsRn6n46IDaefNT rZ1zzNqrjqx2Dn/S+NZmKVoDjhR1phEgxF/LD4Wmiy2mW9DpsoZQgzOi4XE53eTN1wwU bEOz5coavqx3NJIV76E6CSpba9Ty1HT5vgMW2fbWA8TtzoLWRIrRPu8ynvJxSYQOOIre erRDNktqbBTlJITworHECT5sDM8tHvDjdOepZLh6Ybq2ExSaG9U1htNfCtMPP7Tub4N+ lD9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FoZdgdnZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id n14-20020a170902d2ce00b001b80ecdcb88si2695521plc.473.2023.09.14.19.27.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 19:27:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=FoZdgdnZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 0D9A6833DE12; Thu, 14 Sep 2023 07:08:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239714AbjINOIR (ORCPT + 99 others); Thu, 14 Sep 2023 10:08:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236314AbjINOIP (ORCPT ); Thu, 14 Sep 2023 10:08:15 -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 ESMTP id 977231BF9 for ; Thu, 14 Sep 2023 07:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694700444; 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=yHudOf8iuVH8gSyXltnig2N3UnhuMoM7BMALuIknbpk=; b=FoZdgdnZ0hzdCN3TmjNqc+o+UsF7x86j9rKhT7L830aY1R0QKBlZolnOxEhgcuTToujxRB jUyA1PYLj/swq/H3PjIdKnU2/h9m+NKfqrJ4M4lejM8vZ3B292ZZq576BpMvE+g9hsdo8U /UP/zB31UewGioPUqtrZ6UnlPWvpGQo= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-646-sWFV2a9hMOijXhTtRONaqQ-1; Thu, 14 Sep 2023 10:07:22 -0400 X-MC-Unique: sWFV2a9hMOijXhTtRONaqQ-1 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-40474e7323dso2855045e9.2 for ; Thu, 14 Sep 2023 07:07:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694700441; x=1695305241; 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=yHudOf8iuVH8gSyXltnig2N3UnhuMoM7BMALuIknbpk=; b=vciOIyjCVrxxsZ4XkOe+Vlehvaa+uF0o1tXlLQ/QK9cmP1Udnsw7fEvr+IRvdztWPo Uq4dhc2l+kWp6gn+w485rRf1Q+NvIPAjdK3nUkMbJ0/CuiHID2ymImY07452ntVfskd5 hb8WbC7j0d5LcPiVXTA86Oeag/wyRVRU7lVTjXSB2R4s6dMUAghxov5PnObUXPLJ7d1n iAWLv8mR3q0rOjayO69HKDWFcZH/XikEx5PoizDEY9thBTuJJzcVXvnx+T8yCDlriRuG trjdPjecq3U6okmoNqddMmhKvrsVcIQq+5acmUSrTsXkLMvgHX5HqvMW4novBZCK4j5V WTTg== X-Gm-Message-State: AOJu0YwbqUEyrLRud6HDTBGYwFp9wHd1OWr7ullUPOAjKPqBNnz/Sh9M iSMoarTtZY37JNPwG7ynPP0K54g3k9X7OS9w24yQ5DBR5i2YTgZ+SOqIVwfiTmcASQe6JHL0obk PoOk6JJlqTgypbYxExqB6dCAc X-Received: by 2002:a05:600c:22c6:b0:401:b53e:6c57 with SMTP id 6-20020a05600c22c600b00401b53e6c57mr4834835wmg.9.1694700441098; Thu, 14 Sep 2023 07:07:21 -0700 (PDT) X-Received: by 2002:a05:600c:22c6:b0:401:b53e:6c57 with SMTP id 6-20020a05600c22c600b00401b53e6c57mr4834802wmg.9.1694700440710; Thu, 14 Sep 2023 07:07:20 -0700 (PDT) Received: from sgarzare-redhat ([46.222.114.183]) by smtp.gmail.com with ESMTPSA id c3-20020a056000104300b003143cb109d5sm1889389wrx.14.2023.09.14.07.07.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 07:07:20 -0700 (PDT) Date: Thu, 14 Sep 2023 16:07:13 +0200 From: Stefano Garzarella To: Arseniy Krasnov Cc: Stefan Hajnoczi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , "Michael S. Tsirkin" , 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 v8 0/4] vsock/virtio/vhost: MSG_ZEROCOPY preparations Message-ID: <554ugdobcmxraek662xkxjdehcu5ri6awxvhvlvnygyru5zlsx@e7cyloz6so7u> References: <20230911202234.1932024-1-avkrasnov@salutedevices.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20230911202234.1932024-1-avkrasnov@salutedevices.com> 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 (morse.vger.email [0.0.0.0]); Thu, 14 Sep 2023 07:08:25 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 morse.vger.email Hi Arseniy, On Mon, Sep 11, 2023 at 11:22:30PM +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). > >I've included changelog to some patches anyway, because there were some >comments during review of last big patchset from the link above. Thanks, I left some comments on patch 4, the others LGTM. Sorry to not having spotted them before, but moving virtio_transport_alloc_skb() around the file, made the patch a little confusing and difficult to review. In addition, I started having failures of test 14 (server: host, client: guest), so I looked better to see if there was anything wrong, but it fails me even without this series applied. It happens to me intermittently (~30%), does it happen to you? Can you take a look at it? host$ ./vsock_test --mode=server --control-port=12345 --peer-cid=4 ... 14 - SOCK_STREAM virtio skb merge...expected recv(2) returns 8 bytes, got 3 guest$ ./vsock_test --mode=client --control-host=192.168.133.2 --control-port=12345 --peer-cid=2 Thanks, Stefano