From: "Jan Beulich" Subject: Re: [PATCH v6 6/8] xen/arm: introduce GNTTABOP_cache_flush Date: Fri, 17 Oct 2014 09:46:27 +0100 Message-ID: <5440F383020000780003F7D2@mail.emea.novell.com> References: <1413470755-30991-6-git-send-email-stefano.stabellini@eu.citrix.com> <54400DAE020000780003F5BB@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Xf3B6-00005H-Vf for xen-devel@lists.xenproject.org; Fri, 17 Oct 2014 08:46:29 +0000 In-Reply-To: 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 18:30, wrote: > On Thu, 16 Oct 2014, Jan Beulich wrote: >> >>> 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. > > I think it is OK for a variable that defines the maximum. I don't think I understand what you're stating here. >> Also, again - long lines. > > I thought that long lines were acceptable for messages and warnings? Yes, the textual parts of them. XENLOG_* prefixes as well as arguments to fill the % fields should play by the no- long-lines rule though. Jan