Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1048636ybp; Fri, 4 Oct 2019 08:49:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqyAmySlKhdXqWjosv2KVrZStQjjgzF80AxBsrSyJu80mXIK7SlPvGBi7RJk7OlUveBFL3+f X-Received: by 2002:a50:e613:: with SMTP id y19mr16080801edm.290.1570204192530; Fri, 04 Oct 2019 08:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570204192; cv=none; d=google.com; s=arc-20160816; b=YC1u3DdcqlHB41eHWPiLnwxj+PY811t2RxU7sYKRRqJMdYq0G+VJMrVZkPkmKPr852 r/7Rqh/YaWS06M0y79shf85vSvhOa77nY8pkz9nT9tZ2DhaDF7r/IsLChKKAm30/NKKz gutoZYIolcXTqLH8mTfmPrcvHb/Sd9TGZD8uwa8jkTcUJPYTkZkIjWdpIY5SVSiMSez7 J2gnOhpPQPV1TCqUZBRIszxwpstXlaXt7GyWAFRtC5rNufPvZrpVripKnITG12z9Knej LivUskSNv39OQKKC/SgP/puZo1Xh1s9GoKWLdjnATUkVrbXgv/HXGNeWVb/Ez8xj2qvV BPUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JRlwCtkLSliQMhv8ZQkSjOVbSsXhRMdep34KyR+XIxE=; b=g7cbUc13LvqSxQg18lrMbCninh6Mmjs4irTYK3OxoFx2GW1O1SnCCHYK+AYmzy20vU jPlIX0NO+tPe9jlcG4A8CxZ5+WFYh3UOQ5l3WZBfq/PKVJU2mLW5FFGBaop7QKJJIRj3 T33okjNf4BVAMpOAf2pU5Vg9pBCxdsO+kETyVaWIY7UVp2YXBIJHNFY7iMArf1SqvpgO /FT8XZtokXDIkIlfjaq5J36FHOico5AUUgog2D7mDN6QKxJcjJcNNFJyvdvGN8otwAc5 ALyo0ala8/2hX19MEX9HOXB533cmKq3wxskbEMU55DnjK0VFfSjCAjCldDbqBil4QS9e NcOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gogeOTWh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s21si2973893eja.226.2019.10.04.08.49.27; Fri, 04 Oct 2019 08:49:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gogeOTWh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390129AbfJDPsT (ORCPT + 99 others); Fri, 4 Oct 2019 11:48:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:36922 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389794AbfJDPsT (ORCPT ); Fri, 4 Oct 2019 11:48:19 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 287A020830; Fri, 4 Oct 2019 15:48:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570204098; bh=S2WPOl/0NG3P+Mug85lHlPzdbG1nDs6G5hw05L4rq7o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gogeOTWhbb1G6lu8oXCbTK9S5PfIvspwQwfnbqhWBqa+hQQ8IKcyDwvPGeG08EnqQ qzDzKdG8vwYJM4Gn4OJSHW/FacZhCbzhEfQh8si6Yf/+0VN2jz5CTXRMRZd1ZleDh3 vIJiykQYVLi5JEY2ueqXlhGTh0sp5nL6lh/SrZDY= Date: Fri, 4 Oct 2019 11:48:17 -0400 From: Sasha Levin To: Michael Kelley Cc: Himadri Pandya , KY Srinivasan , Haiyang Zhang , Stephen Hemminger , "davem@davemloft.net" , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "himadri18.07" Subject: Re: [PATCH] hv_sock: use HV_HYP_PAGE_SIZE instead of PAGE_SIZE_4K Message-ID: <20191004154817.GL17454@sasha-vm> References: <20190725051125.10605-1-himadri18.07@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 31, 2019 at 01:02:03AM +0000, Michael Kelley wrote: >From: Himadri Pandya Sent: Wednesday, July 24, 2019 10:11 PM >> >> Older windows hosts require the hv_sock ring buffer to be defined >> using 4K pages. This was achieved by using the symbol PAGE_SIZE_4K >> defined specifically for this purpose. But now we have a new symbol >> HV_HYP_PAGE_SIZE defined in hyperv-tlfs which can be used for this. >> >> This patch removes the definition of symbol PAGE_SIZE_4K and replaces >> its usage with the symbol HV_HYP_PAGE_SIZE. This patch also aligns >> sndbuf and rcvbuf to hyper-v specific page size using HV_HYP_PAGE_SIZE >> instead of the guest page size(PAGE_SIZE) as hyper-v expects the page >> size to be 4K and it might not be the case on ARM64 architecture. >> >> Signed-off-by: Himadri Pandya >> --- >> net/vmw_vsock/hyperv_transport.c | 21 +++++++++++---------- >> 1 file changed, 11 insertions(+), 10 deletions(-) >> >> diff --git a/net/vmw_vsock/hyperv_transport.c b/net/vmw_vsock/hyperv_transport.c >> index f2084e3f7aa4..ecb5d72d8010 100644 >> --- a/net/vmw_vsock/hyperv_transport.c >> +++ b/net/vmw_vsock/hyperv_transport.c >> @@ -13,15 +13,16 @@ >> #include >> #include >> #include >> +#include >> > >Reviewed-by: Michael Kelley > >This patch depends on a prerequisite patch in > > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/hyperv > >that defines HV_HYP_PAGE_SIZE. David, the above prerequisite patch is now upstream, so this patch should be good to go. Would you take it through the net tree or should I do it via the hyperv tree? -- Thanks, Sasha