Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp440503ybi; Fri, 26 Jul 2019 12:23:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2XRdcd0CgmEA6xopRrJHT2mF0w3ZBE0Q+ccfrrcpZkN8o/+gZs4Z5wZDXwiR+Nk5y+0E6 X-Received: by 2002:a17:90a:d14a:: with SMTP id t10mr59790989pjw.85.1564168979915; Fri, 26 Jul 2019 12:22:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564168979; cv=none; d=google.com; s=arc-20160816; b=lTw/NgzsVbJESQQnLUTWyJJf7tEyUyLEpTTe2e3yDtebw40xRsPP0Xb9eAtHfp8hfP RIciC+DxfML6kuWIGW4mIr6g5d3nvuzYEfDxogTjdfPdZ/5Kfxdrg7vuB2IbwCvFL2WB yKbNkBnSdm+7Qfc07mANLtXP2xvjCNxe4KF69HTIkW6CVkG+EfpSdLZKM0VHhWwwZmf6 FkBPdUF/vGSFmWPug2b6XXnVuwBoYE4bU7InWRkiLuJaGtKx2j1ltjaOlE6MjL+qdkMU LAl0ya6/1BxnIJ4DF9GHMRjNFUqzjDbe7cMZrMPr2jBU1O6k58NEMnU9bXHBT68/ux21 GL3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=hXc0pZiVWKjur2BLw/ku9fM4A01QRuSRSkb/F5o/xVY=; b=mAgcpPBjo5SECorh87sX357c/ih72TrG923MErosODKPbiAz2YPYb18eLyskIujCdD CHEtMYnMOQUxIoZfgWJrsT3vEyhl8vgwh37oIqGkzJjzRn1rdXKMNS+Fh8fBMABzkSzs 8rYjE21Sv8B4CbZsUk4xFIEvgWzyqKpXGKGbKw5sB3hP1LoMFyLOaDd85MWci16RbY1Y X55vys20j15px5fYoJirr1Vp4qnKA0OS2gtMAMos+MyZRwvr640esP6/2LosjsLifLHq GSU5dJLuv7ulqXkDMh4w4vmEwl2XzE8RPogs+Wr/Qw/3/XHOX/3XZq/1dg1rr/b3eI0Y vgjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=vFtaHMqb; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az7si18325577pjb.51.2019.07.26.12.22.44; Fri, 26 Jul 2019 12:22:59 -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=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b=vFtaHMqb; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728192AbfGZQHN (ORCPT + 99 others); Fri, 26 Jul 2019 12:07:13 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:38582 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728040AbfGZQHM (ORCPT ); Fri, 26 Jul 2019 12:07:12 -0400 Received: by mail-pl1-f196.google.com with SMTP id az7so24912170plb.5 for ; Fri, 26 Jul 2019 09:07:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hXc0pZiVWKjur2BLw/ku9fM4A01QRuSRSkb/F5o/xVY=; b=vFtaHMqbUAY8NIcGxImZaowBoZD3FtEGHtEk5cvbGEE6BOJsDTr8bjBY5/0f5GFUeC NnR9PnAYhtUvRrMxqjoNEodOV1bPBXfnkRaPrKQJudR6G3bAe8dzLNMiMNOwYGNwMdN5 GUEXMnZPEM6ma+VgxnH/LlcQ56dx2SISe8BYNSx5uN4hX8xmmV5pfvL6FCtAFK9MCQtW 8AFzYL3fk8sTsxgHDscFdNW2HcbLmnthESc9HB0C+UjwyBviLjh3wQWi6soZOSMYLrVo cPnsKXTuwV4qBYe5FulKOxEvC8LYw2/PZEd9Et42EAdQ6Bdtz7a4EWS/h/FibU0G/vM8 VirA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hXc0pZiVWKjur2BLw/ku9fM4A01QRuSRSkb/F5o/xVY=; b=sMCLmTn8skdFGPp99HXXE1CpK5ftOzaWr4sJM0IIRwxeuF874UIaun69cUBatqnarj xfTQNR8xokTG1MuceyTR/13Ekdjigze9KoU1YGXY1i+rMHMGTuzBCrtOMkrJfm5+SMDe 7w9T9v9wQdCp/gCCVqupWA22L0ENRCpjzUzWRPq0KuPVoRCKeQS+pskEVyO2zC0sly6d lklYSvzOoC91wj11imDNpnYX/3WLNpeICNYv6ei3QreOvHJt7+45FwLI9WKAAqvEgJr+ UOzQYwxHNsb1bi/qvN845J6PaxABw0Ulz0y6pG6HgDJGsTRj2z9nKFJ0tZpGI4OFp2KV Kkng== X-Gm-Message-State: APjAAAUE0XugFBdDE/hW9T6JZljJ5UgHMo3qyo9cQ/HgXypBymLjcNSI Qu0FZdQKwQlJ3OHP+MPeMoI= X-Received: by 2002:a17:902:106:: with SMTP id 6mr98958928plb.64.1564157231065; Fri, 26 Jul 2019 09:07:11 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id n128sm9076932pfn.46.2019.07.26.09.07.10 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 09:07:10 -0700 (PDT) Date: Fri, 26 Jul 2019 09:07:09 -0700 From: Stephen Hemminger To: "Himadri Pandya" Cc: "Michael Kelley" , "KY Srinivasan" , "Haiyang Zhang" , "Stephen Hemminger" , , , , "himadri18.07" Subject: Re: [PATCH 1/2] Drivers: hv: Specify receive buffer size using Hyper-V page size Message-ID: <20190726090709.31aaeef0@hermes.lan> In-Reply-To: <20190725050315.6935-2-himadri18.07@gmail.com> References: <20190725050315.6935-1-himadri18.07@gmail.com> <20190725050315.6935-2-himadri18.07@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Jul 2019 22:03:14 -0700 "Himadri Pandya" wrote: > The recv_buffer is used to retrieve data from the VMbus ring buffer. > VMbus ring buffers are sized based on the guest page size which > Hyper-V assumes to be 4KB. But it may be different on some > architectures. So use the Hyper-V page size to allocate the > recv_buffer and set the maximum size to receive. > > Signed-off-by: Himadri Pandya If pagesize is 64K, then doing it this way will waste lots of memory.