Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5794482rdb; Wed, 13 Dec 2023 22:27:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHGPVlv0mxyorC1J0vlpzBo1CZugmD7Xq9gvC8loIVspupbKT3Sgjy6qlhBRvHpZqjD8ysN X-Received: by 2002:a05:6a00:2ba:b0:6ce:6c6d:1622 with SMTP id q26-20020a056a0002ba00b006ce6c6d1622mr4563139pfs.62.1702535278816; Wed, 13 Dec 2023 22:27:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702535278; cv=none; d=google.com; s=arc-20160816; b=jpVTGewbJbuehG/T3V+qeURuf55jEoF6b9dwgurMs0Dd2Ky+axp3Pj2rnGswlimGWS 0sXrVamZOzggebm1RaBdiTC+UV6kfHhx79TV8uBo9iYDXOvt+Z+ZG9ZEMIpPfPrvUowe 1jb+wW7tqK6wssxym9SxHH7+2ADSKsAsJKcm2Nc6N46U7IArhZP0E6f8CHFKmiPbvpM6 nnL5Gr3sUFziMILrYEmWWfPvWrDCS/b6LWFh8GfyQeVIus2ph2jUI8B03GsLGg31IbVI uqp0d9shMREjx+ONAGIomYOgnJnAfhBufWE8WMJeE3vd1havJzxCA2jlsTlZ181BZs1U twLA== 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; bh=GBnIi8Qz5uWcTcESRIS8pvIzwIECvSyDvGl6HRuF3DE=; fh=44XcX9H6IuDjGc+wIzW1df+GjOzISEx4HTDYauchgjk=; b=MchwB+f1qkUPcTHVUh4UVbFuXgcNy/OKp32LrqOE6glm/evDFfuncGbgH16XgElWXT fvcJ92xmaw9665pSWqqvz03nM/ONVY0RmeYKOTuq91gw5JAcifdgnwBa1XJWRUUdA5an 2aKT9hsxlJEKBGTZHcV0dGR+m5fSskCow10qbLcWsCqBVPOu9rZQXddsHRPdoHLasASW sRIy2JABDxg2Zpu6QDwIAK4hYu1gPKRSXCfIy7cUYqLa2gzGQCTsn91QDSKm8yvV1OGT Ar4puzNP8zGvAWaa/caGzNBSB7HXQ3JfEYqkREuSuik6VDtKMYpaxPOKy1BT8ujg1+Ih puZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OLfCLKMV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id s12-20020a056a0008cc00b006cdd0109833si10712236pfu.154.2023.12.13.22.27.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 22:27:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OLfCLKMV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 748C380DD843; Wed, 13 Dec 2023 22:27:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230034AbjLNG1j (ORCPT + 99 others); Thu, 14 Dec 2023 01:27:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbjLNG1i (ORCPT ); Thu, 14 Dec 2023 01:27:38 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ADBAB7 for ; Wed, 13 Dec 2023 22:27:45 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 262DDC433C8; Thu, 14 Dec 2023 06:27:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702535264; bh=jCIF91qtDA+ZEemkBo11x9McQ7w6uFe00P7r8p+aNPc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=OLfCLKMVmfm4FvlW6f9rzDdFrIJXc9NVwo8lyjxEmGPCLKMB+q5s5r8p04kk5BMJM N5inpFK7IRJjGnWpMJx5ekByzFuldxl12CU/nxmV3pDAzTKssl7WNNNp9+kJ4YDXNt zi7UWJW6klo9/1YSSrL31LbUcOqA46d7whIOxM0PvDpa5WH5162jXd9OFTDCe4GNJD 1aaYbKJjaUVKgc2oP4/Uw9s9+5BLEKn4p1ODIv2MweI08wA5yzyLPMJI734I8L1QrQ +4YBCzIRwhns3lqdHyWUK26IabO7QJ0Rglu4Vj1ppOyVL8X8iPcdNvdNAn6Avzc2GK DCd4l/otJcPnw== Message-ID: Date: Wed, 13 Dec 2023 22:27:40 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH net-next v1 1/4] vsock/virtio: use skb_frag_page() helper Content-Language: en-US To: Mina Almasry , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Greg Kroah-Hartman , "Rafael J. Wysocki" , Sumit Semwal , =?UTF-8?Q?Christian_K=C3=B6nig?= , Michael Chan , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Wei Fang , Shenwei Wang , Clark Wang , NXP Linux Team , Jeroen de Borst , Praveen Kaligineedi , Shailend Chand , Yisen Zhuang , Salil Mehta , Jesse Brandeburg , Tony Nguyen , Thomas Petazzoni , Marcin Wojtas , Russell King , Sunil Goutham , Geetha sowjanya , Subbaraya Sundeep , hariprasad , Felix Fietkau , John Crispin , Sean Wang , Mark Lee , Lorenzo Bianconi , Matthias Brugger , AngeloGioacchino Del Regno , Saeed Mahameed , Leon Romanovsky , Horatiu Vultur , UNGLinuxDriver@microchip.com, "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Jassi Brar , Ilias Apalodimas , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Siddharth Vadapalli , Ravi Gunasekaran , Roger Quadros , Jiawen Wu , Mengyuan Lou , Ronak Doshi , VMware PV-Drivers Reviewers , Ryder Lee , Shayne Chen , Kalle Valo , Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Stefan Hajnoczi , Stefano Garzarella , Shuah Khan , =?UTF-8?Q?Micka=C3=ABl_Sala=C3=BCn?= , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Jason Gunthorpe , Shakeel Butt , Yunsheng Lin , Willem de Bruijn References: <20231214020530.2267499-1-almasrymina@google.com> <20231214020530.2267499-2-almasrymina@google.com> From: David Ahern In-Reply-To: <20231214020530.2267499-2-almasrymina@google.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Wed, 13 Dec 2023 22:27:56 -0800 (PST) On 12/13/23 7:05 PM, Mina Almasry wrote: > diff --git a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_transport.c > index af5bab1acee1..bd0b413dfa3f 100644 > --- a/net/vmw_vsock/virtio_transport.c > +++ b/net/vmw_vsock/virtio_transport.c > @@ -153,7 +153,7 @@ virtio_transport_send_pkt_work(struct work_struct *work) > * 'virt_to_phys()' later to fill the buffer descriptor. > * We don't touch memory at "virtual" address of this page. > */ > - va = page_to_virt(skb_frag->bv_page); > + va = page_to_virt(skb_frag_page(skb_frag)); > sg_init_one(sgs[out_sg], > va + skb_frag->bv_offset, offset should not be open coded either. > skb_frag->bv_len);