From: "Jan Beulich" Subject: Re: [PATCH v6 6/8] xen/arm: introduce GNTTABOP_cache_flush Date: Thu, 16 Oct 2014 17:25:50 +0100 Message-ID: <54400DAE020000780003F5BB@mail.emea.novell.com> References: <1413470755-30991-6-git-send-email-stefano.stabellini@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XensA-0000RT-L5 for xen-devel@lists.xenproject.org; Thu, 16 Oct 2014 16:25:54 +0000 In-Reply-To: <1413470755-30991-6-git-send-email-stefano.stabellini@eu.citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: julien.grall@citrix.com, xen-devel , Ian.Campbell@citrix.com List-Id: xen-devel@lists.xenproject.org >>> On 16.10.14 at 16:45, wrote: > @@ -2953,6 +3086,10 @@ static int __init gnttab_usage_init(void) > if ( !max_maptrack_frames ) > max_maptrack_frames = MAX_MAPTRACK_TO_GRANTS_RATIO * max_grant_frames; > > + if ( max_grant_frames > DEFAULT_MAX_NR_GRANT_FRAMES ) > + printk(XENLOG_WARNING "An high gnttab_max_frames can seriously slow down the hypervisor.\n" > + "It is recommended to set gnttab_max_frames to %d max.\n", DEFAULT_MAX_NR_GRANT_FRAMES); It is certainly odd for the default being the maximum, but okay - if others consider this fine, I'm not going to object. Also, again - long lines. And the message should start with "A high" I think, while the second line of the message needs another XENLOG_WARNING prefixed. Jan