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

Re: [Xen-devel] Bare-metal Xen on ARM boot

>> Can I get a small confirmation my custom binary boots and crashes
>> after a succesful boot? :-)
> (XEN) Guest data abort: Translation fault at level 2
> (XEN)     gva=8ffffff8
> What does the binary do? Looks like it has executed way outside its
> memory. What is the custom guest's memory layout like?
This is still the same one as I initially mailed. It should print
Hello World using the console hypercall. After playing around a bit (
the sp was set at 0x90000000  which was too far ) I got it running. I
don't see the Hello World however but I'll look into that. Thanks

Btw, when I configure the guest to have more than 474mb ram ( in the
cfg file, 'memory = 475' ) the domain creation fails. Is this to be
expected? Is there documentation on how Xen is mapped on the board's
memory? I looked at some patches ( the 'hack' 1:1 arndale patch too )
but it's not entirely clear yet why this happens. I know uboot loads
xen at 0x5000000 and we expect dom0 at 0x8000000.

domainbuilder: detail: xc_dom_parse_elf_kernel: xen-3.0-armv7l:
0x80000000 -> 0x80010010
domainbuilder: detail: xc_dom_mem_init: mem 475 MB, pages 0x1db00 pages, 4k each
domainbuilder: detail: xc_dom_mem_init: 0x1db00 pages
domainbuilder: detail: xc_dom_boot_mem_init: called
domainbuilder: detail: xc_dom_malloc            : 950 kB
(XEN) memory.c:132:d0 Could not allocate order=0 extent: id=14
memflags=0 (120870 of 121600)
xc: detail: Failed allocation for dom 14: 121600 extents of order 0
domainbuilder: detail: xc_dom_build_image: called
domainbuilder: detail: xc_dom_alloc_segment:   kernel       :
0x80000000 -> 0x80011000  (pfn 0x80000 + 0x11 pages)
domainbuilder: detail: xc_dom_pfn_to_ptr: domU mapping: pfn
0x80000+0x11 at 0xb6c2c000
xc: detail: elf_load_binary: phdr 0 at 0x0xb6c2c000 -> 0x0xb6c2c05c
xc: detail: elf_load_binary: phdr 1 at 0x0xb6c3c000 -> 0x0xb6c3c010
domainbuilder: detail: alloc_magic_pages: called
(XEN) p2m_populate_ram: L2 failed
(XEN) memory.c:132:d0 Could not allocate order=0 extent: id=14
memflags=0 (1 of 2)
xc: detail: Failed allocation for dom 14: 2 extents of order 0
libxl: error: libxl_dom.c:392:libxl__build_pv: xc_dom_build_image
failed: Device or resource busy
domainbuilder: detail: xc_dom_release: called
libxl: error: libxl_create.c:908:domcreate_rebuild_done: cannot
(re-)build domain: -3

Xen-devel mailing list



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