[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] pvgrub "Error 9: Unknown boot failure" booting Debian Jessie kernel (Was: Re: [PATCH v5 6/9] libxc: create unmapped initrd in domain builder if supported)

On Tue, 2015-12-01 at 10:01 +0000, Ian Campbell wrote:
> > > I'll try that and your suggested patch below as well once I get to the
> > > office this morning.
> > 
> > Thanks.
> The BUG_ON doesn't seem to be triggering. I'm not seeing pfn==0x4d80 going
> anywhere near kexec_allocate, the highest isÂ0x4c0f.
> Maybe the issue is that the ->allocate hook (==kexec_allocate) isn't called
> from xc_dom_alloc_pad?

That seems like it might be the answer, this patchlet fixes it for me:

diff --git a/tools/libxc/xc_dom_core.c b/tools/libxc/xc_dom_core.c
index 5d6c3ba..6d3f97a 100644
--- a/tools/libxc/xc_dom_core.c
+++ b/tools/libxc/xc_dom_core.c
@@ -579,7 +579,13 @@ static int xc_dom_alloc_pad(struct xc_dom_image *dom, 
xen_vaddr_t boundary)
ÂÂÂÂÂpages = (boundary - dom->virt_alloc_end) / page_size;
-ÂÂÂÂreturn xc_dom_chk_alloc_pages(dom, "padding", pages);
+ÂÂÂÂif ( xc_dom_chk_alloc_pages(dom, "padding", pages) )
+ÂÂÂÂÂÂÂÂreturn -1;
+ÂÂÂÂif (dom->allocate)
+ÂÂÂÂreturn 0;
Âint xc_dom_alloc_segment(struct xc_dom_image *dom,

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.