From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH v5 1/9] libxc: reorganize domain builder guest memory allocator Date: Thu, 12 Nov 2015 14:47:24 +0000 Message-ID: <1447339644.18450.75.camel@citrix.com> References: <1447335816-31772-1-git-send-email-jgross@suse.com> <1447335816-31772-2-git-send-email-jgross@suse.com> <20151112134807.GK24281@zion.uk.xensource.com> <56449C34.6050408@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <56449C34.6050408@suse.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: Juergen Gross , Wei Liu Cc: stefano.stabellini@eu.citrix.com, ian.jackson@eu.citrix.com, roger.pau@citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2015-11-12 at 15:03 +0100, Juergen Gross wrote: > On 12/11/15 14:48, Wei Liu wrote: > > On Thu, Nov 12, 2015 at 02:43:28PM +0100, Juergen Gross wrote: > > > Guest memory allocation in the domain builder of libxc is done via > > > virtual addresses only. In order to be able to support preallocated > > > areas not virtually mapped reorganize the memory allocator to keep > > > track of allocated pages globally and in allocated segments. > > > > > > This requires an interface change of the allocate callback of the > > > domain builder which currently is using the last mapped virtual > > > address as a parameter. This is no problem as the only user of this > > > callback is stubdom/grub/kexec.c using this virtual address to > > > calculate the last used pfn. > > > > > > Signed-off-by: Juergen Gross > > > > If you've tested and confirmed pvgrub (stubdom based grub) doesn't > > break: > > > > Acked-by: Wei Liu > > > > Hmm, difficult. Is this ever tested automatically? Yes, see the test-amd64-amd64-amd64-pvgrub and test-amd64-amd64-i386-pvgrub jobs in any recent osstest flight (it was added a couple of months back. http://logs.test-lab.xenproject.org/osstest/results/history/test-amd64-amd64-amd64-pvgrub/xen-unstable.html suggests it works ok in general. Ian.