From: Ian Campbell Subject: Re: [PATCH] xl: extend autoballoon xl.conf option with an "auto" option Date: Wed, 10 Apr 2013 12:12:06 +0100 Message-ID: <1365592326.26448.29.camel@zakaz.uk.xensource.com> References: <1365077117-31184-1-git-send-email-david.vrabel@citrix.com> <20829.32882.19628.117398@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20829.32882.19628.117398@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: David Vrabel , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Thu, 2013-04-04 at 14:30 +0100, Ian Jackson wrote: > David Vrabel writes ("[PATCH] xl: extend autoballoon xl.conf option with an "auto" option"): > > autoballoon=1 is not recommened if dom0_mem was used to reduce the > > amount of dom0 memory. Instead of requiring users to change xl.conf > > if they do this, extend the autoballoon option with a new choice: > > "auto". > > I really like the principle of this patch. > > But: > > > + > > +Default: C<"on"> > > I would like to see another patch changing the default. > > > + if (strstr(info->commandline, "dom0_mem")) > > + return 0; > > Sadly your command line parsing needs to be more sophisticated than > this. Consider: > > xen blah vmlinuz blah initrd.gz blah init=/etc/init.try-without-dom0_mem You are correct although your example isn't because the Xen command line in this case would only include the first "blah" (or else your hypothetical bootloader which implements this syntax is doing something non-intuitive). Ian.