From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: [PATCH v4 1/9] libxc: reorganize domain builder guest memory allocator Date: Thu, 12 Nov 2015 11:24:47 +0000 Message-ID: <20151112112447.GC24281@zion.uk.xensource.com> References: <1446734195-20257-1-git-send-email-jgross@suse.com> <1446734195-20257-2-git-send-email-jgross@suse.com> <20151112111437.GA24281@zion.uk.xensource.com> <56447634.5070005@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <56447634.5070005@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 Cc: Wei Liu , Ian.Campbell@citrix.com, stefano.stabellini@eu.citrix.com, ian.jackson@eu.citrix.com, xen-devel@lists.xen.org, roger.pau@citrix.com List-Id: xen-devel@lists.xenproject.org On Thu, Nov 12, 2015 at 12:21:24PM +0100, Juergen Gross wrote: > On 12/11/15 12:14, Wei Liu wrote: > > On Thu, Nov 05, 2015 at 03:36:27PM +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 > > > > One question: did you test building with pygrub after this change? I > > think the code is correct but we'd better be sure it doesn't break > > pygrub. > > Yes, pygrub is being built in my environment. > Sorry. I meant pvgrub. You should be able to test it according to http://wiki.xenproject.org/wiki/PvGrub The test is to make sure the change to stubdom/grub/* doesn't break things. Wei. > > Juergen >