Received: from eggs.gnu.org ([2001:4830:134:3::10]:49691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGP8m-00022p-Ui for qemu-devel@nongnu.org; Fri, 24 Jun 2016 07:19:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGP8f-0008Pi-GL for qemu-devel@nongnu.org; Fri, 24 Jun 2016 07:19:13 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:63416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGP8f-0008P4-9F for qemu-devel@nongnu.org; Fri, 24 Jun 2016 07:19:09 -0400 Date: Fri, 24 Jun 2016 12:19:04 +0100 From: Anthony PERARD Message-ID: <20160624111904.GV5666@perard.uk.xensource.com> References: <20160622150937.GS5666@perard.uk.xensource.com> <1466693874.26189.50.camel@redhat.com> <20160623161847.GT5666@perard.uk.xensource.com> <1466747183.16435.1.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1466747183.16435.1.camel@redhat.com> Subject: Re: [Qemu-devel] Change of max-ram-below-4g initial value breaks Xen List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org, xen-devel@lists.xen.org, Stefano Stabellini , Paolo Bonzini On Fri, Jun 24, 2016 at 07:46:23AM +0200, Gerd Hoffmann wrote: > On Do, 2016-06-23 at 17:18 +0100, Anthony PERARD wrote: > > On Thu, Jun 23, 2016 at 04:57:54PM +0200, Gerd Hoffmann wrote: > > > Hi, > > > > > > > How could xen_ram_init() find out if the value of max-ram-below-4g is > > > > the default or if a user have set it? Is there another way we could fix > > > > this? > > > > > > Attached patch should fix it. Patch survived a quick smoke test on kvm > > > so far, need to do some more testing tomorrow. Can you give it a spin > > > on xen? > > > > Thanks. Unfortunately, it does not work :(. > > > > In this patch, max_ram_below_4g is set before the call to xen_ram_init() > > and xen_ram_init read it back (via object_property_get_int()). So, in > > xen_ram_init, user_lowmem is not 0. > > Ah, I see. We do the split calculation twice on xen. That is pretty > pointless. New patch attached. I've tested on Xen, it works fine. Thanks. Also, the patch look good. Cheers, -- Anthony PERARD