Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5835267rdb; Thu, 14 Dec 2023 00:20:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IEtji8//k3ERtl0iCBtNUA2qUR6iG5RDQ7LfnZKnWX/6f6xfrRyMhFRI0ibo79Ldexj1kOs X-Received: by 2002:a05:6870:d390:b0:203:30bb:d966 with SMTP id k16-20020a056870d39000b0020330bbd966mr2317591oag.108.1702542016671; Thu, 14 Dec 2023 00:20:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702542016; cv=none; d=google.com; s=arc-20160816; b=FYl3eXxAJ7UObh+33Cu+k1kBp5V2d9elfO6VGaU4WCHzUvW+gV3RSX+9gDAxCSHmXH by0cijR8YJygiSRsJI4nHGR/FeffixyJIyPN0HkTnkLtAXX1XOvrMSqYUxbKKJR+P5F/ RCRBN9Z+6R75rTttqLvm1tUaH6biy0RbuG/UxWTBz5ZYywryWIBm4hUWG9iJb2pfjEf6 OeIH5YtEVoD89qXTxXW/GddU2wIFT3IfBgObr7Jo26KfY6fqAptz4mfBuOKpL7OHmbx9 /u6UTnWOlXHE8RQXsdXwaYvyWajRdeFPPX3GrlpnQ6BqBxWIPHjFyQqRJEwBD6KNEb2j V2kQ== 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=tRmYmYKdouaq3SuesAh37kIKzoyNX5WPg71KEcwVJ1U=; fh=pHamhZ8ihLlOeObOSXDb+PPnPZxFzdFZPF2yooevTGY=; b=cIOWisfoiB28NG4sb2wvHBpqYhxsCeFFEvBMkX6lnbmpLJNznbNwY5C0flDbG+qP9n O1/1i4y4DBa96u2K3VsTbneyEHPcPhiOs3x5944g32nk1uIoIkK/jKXbY/l/JTctPWm0 nMAh3gHdOI97pgnAWqZhleASYpkqzcIgp0qMdAxcDB/hwg/XdzZYMheCuQYRGQ3rb61Q BpshY0tbifeuXYj/EFSfd4ZliMULdLwEVdlCOQHDPcDW1OwcO0xG9OT6gPniYoU/Svi4 V14pgUmq/4Fcutzqb6UJnkUbY3brOmla8DdHC1vZb2Gq3OuHAzzgv5wPiYygqqRFPwGD R+uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DxhLSpC3; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id s16-20020a632150000000b005c2791fedbasi10781777pgm.124.2023.12.14.00.20.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 00:20:16 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=DxhLSpC3; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E652881F3681; Thu, 14 Dec 2023 00:20:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234379AbjLNIT4 (ORCPT + 99 others); Thu, 14 Dec 2023 03:19:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229769AbjLNITz (ORCPT ); Thu, 14 Dec 2023 03:19:55 -0500 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 4AF90E0 for ; Thu, 14 Dec 2023 00:20:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702542000; 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=tRmYmYKdouaq3SuesAh37kIKzoyNX5WPg71KEcwVJ1U=; b=DxhLSpC3ykN1G6IKN4EdUGfQUiFv4AJ64WGvR0clcRG13oNgP9Ks2Q5JuOuX0VorDIduCm 4AQJTFIJjp0nFkrUzKQnjQRgD8HYis+To4qp1UflJmeWrU9Qd7Pntm0C9sfdviI+pEIiMm GDhd5IWlgmuI4U7UvLCjguiMnphZLUg= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-194-Jp_CzCEcMYq5UEwmdDro7g-1; Thu, 14 Dec 2023 03:19:58 -0500 X-MC-Unique: Jp_CzCEcMYq5UEwmdDro7g-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-333501e22caso6115893f8f.2 for ; Thu, 14 Dec 2023 00:19:57 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702541996; x=1703146796; 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=tRmYmYKdouaq3SuesAh37kIKzoyNX5WPg71KEcwVJ1U=; b=r4l2ehC6ffBeuZS33Fp8Dzudn0kDAmXwCkoyuRmHyiwaGAnmRInHU7ZQV0lh7MZYAn PzWariWrL0+LtP0nFc1hTaLEhKY1kae6QwvI2JpUemjkHudC+PGC7AwAgRMl2tG7zw9o DWDFlRE40BptXIBFG9j9iRGUO4HwlqNhzE3EYiPW7zwCiWVjCLja6S767XmtpF/UAwJE 81JLVkeaKrShWQfXGBACtSYgEGpt/l8ucXNmKB9byW6vmRehOd9RGhGFxOE4cx/Q9L+8 dVd21m/FbMEn4ZH7q6CM9nRJcbcl+Hg7wHVglIpUMSP04MuvDrIb1KRWRVrrbSyfqYt3 rk3A== X-Gm-Message-State: AOJu0YyzgNjbTcaeuiQ3Wp/7EpDtUK50uUHPs0/OVhfEv2pWOEDFa2HS rYLRKIFS/5yFGej9Ds3X8iKFnmYWhfoikHYzlOITXVNZWuVrWFFNk8dtN+Z6Dhw0/c9TswQoXC9 gNEETudPbft65VI0qPwJ3kaTV X-Received: by 2002:a05:6000:1c6:b0:336:4297:b25d with SMTP id t6-20020a05600001c600b003364297b25dmr957838wrx.136.1702541996581; Thu, 14 Dec 2023 00:19:56 -0800 (PST) X-Received: by 2002:a05:6000:1c6:b0:336:4297:b25d with SMTP id t6-20020a05600001c600b003364297b25dmr957779wrx.136.1702541996175; Thu, 14 Dec 2023 00:19:56 -0800 (PST) Received: from sgarzare-redhat ([5.11.101.217]) by smtp.gmail.com with ESMTPSA id c13-20020a5d4ccd000000b003363823d8aesm3920736wrt.59.2023.12.14.00.19.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 00:19:55 -0800 (PST) Date: Thu, 14 Dec 2023 09:19:09 +0100 From: Stefano Garzarella To: Mina Almasry Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Greg Kroah-Hartman , "Rafael J. Wysocki" , Sumit Semwal , Christian =?utf-8?B?S8O2bmln?= , 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 , 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 Subject: Re: [RFC PATCH net-next v1 1/4] vsock/virtio: use skb_frag_page() helper Message-ID: References: <20231214020530.2267499-1-almasrymina@google.com> <20231214020530.2267499-2-almasrymina@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20231214020530.2267499-2-almasrymina@google.com> 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,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 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]); Thu, 14 Dec 2023 00:20:14 -0800 (PST) On Wed, Dec 13, 2023 at 06:05:24PM -0800, Mina Almasry wrote: >Minor fix for virtio: code wanting to access the page inside >the skb should use skb_frag_page() helper, instead of accessing >bv_page directly. This allows for extensions where the underlying >memory is not a page. > >Signed-off-by: Mina Almasry > >--- > net/vmw_vsock/virtio_transport.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) LGTM! Acked-by: Stefano Garzarella > >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, > skb_frag->bv_len); >-- >2.43.0.472.g3155946c3a-goog >