From: Ian Jackson Subject: Re: [PATCH] tools/libxl: run libxl__arch_domain_create() much earlier. Date: Thu, 28 Mar 2013 15:53:40 +0000 Message-ID: <20820.26500.611624.395911@mariner.uk.xensource.com> References: <1363264779-25566-1-git-send-email-tim@xen.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1363264779-25566-1-git-send-email-tim@xen.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Tim Deegan Cc: Stefano Stabellini , Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Tim Deegan writes ("[PATCH] tools/libxl: run libxl__arch_domain_create() much earlier."): > Among other things, arch_domain_create() sets the shadow(/hap/p2m) > memory allocation, which must happen after vcpus are assigned (or the > shadow op will fail) but before memory is allocated (or we might run > out of p2m memory). > > libxl__build_pre(), which already sets similar things like maxmem, > semes like a reasonable spot for it. That needed a bit of plumbing to > get the right datastructure from the caller. > > As a side-effect, the return code from libxl__arch_domain_create() is > no longer ignored. Applied, thanks. Thanks for referencing http://lists.xen.org/archives/html/xen-devel/2013-03/msg00191.html on irc, Tim. I added a reference to it to the commit message. Ian.