[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 Mon, 2015-11-30 at 17:15 +0100, Juergen Gross wrote:
> I'll try to trigger it on my machine and see if I can get some more
> debug information.

Thanks. Below is what I have so far.

It seems to thing mfn=165b81/pfn=4d81 is an L1 PT, when it needs to be a
writeable page due to the reference from the PT at mfn=1bfd9a.

But I don't see anything in the logging which mentioned pfns > 0x4be0+0x1,
i.e. far short of 0x4d81.

I'm also a little confused that the PFNs which the Xen side logging is
arriving at do not fall into the range which has supposedly been allocated
as the guest page tables. Perhaps the m2p isn't expected to be correct at
this point?

e.g. we think the root PT is pfn=4be3/mfn=1bfd71, but when Xen converts
1bfd71 back to a pfn it getsÂab71.

0x4be3 and 0xab71 are almost, but not quite, one bit shift offset from each
other.

TBH I suspect the logging here is simply misleading me.

Ian.


(d54) domainbuilder: xc_dom_boot_xen_init: ver 4.7, caps 
xen-3.0-x86_hvm-3.0-x86_32 hvm-3.0-x86_32p hvm-3.0-x86_64
(d54)ÂÂ
(d54) domainbuilder: xc_dom_parse_image: called
(d54) domainbuilder: xc_dom_find_loader: trying multiboot-binary loader ... 
(d54) domainbuilder: loader probe failed
(d54) domainbuilder: xc_dom_find_loader: trying HVM-generic loader ... 
(d54) domainbuilder: loader probe failed
(d54) domainbuilder: xc_dom_find_loader: trying Linux bzImage loader ... 
(d54) domainbuilder: loader probe OK
(d54) xc: elf_parse_binary: phdr: paddr=0x1000000 memsz=0x7ca000
(d54) xc: elf_parse_binary: phdr: paddr=0x1800000 memsz=0xee000
(d54) xc: elf_parse_binary: phdr: paddr=0x18ee000 memsz=0x13c00
(d54) xc: elf_parse_binary: phdr: paddr=0x1902000 memsz=0x616000
(d54) xc: elf_parse_binary: memory: 0x1000000 -> 0x1f18000
(d54) xc: elf_xen_parse_note: GUEST_OS = "linux"
(d54) xc: elf_xen_parse_note: GUEST_VERSION = "2.6"
(d54) xc: elf_xen_parse_note: XEN_VERSION = "xen-3.0"
(d54) xc: elf_xen_parse_note: VIRT_BASE = 0xffffffff80000000
(d54) xc: elf_xen_parse_note: ENTRY = 0xffffffff819021f0
(d54) xc: elf_xen_parse_note: HYPERCALL_PAGE = 0xffffffff81001000
(d54) xc: elf_xen_parse_note: FEATURES = 
"!writable_page_tables|pae_pgdir_above_4gb|writable_descriptor_tables|auto_translated_physma
(d54) p|supervisor_mode_kernel"
(d54) xc: elf_xen_parse_note: SUPPORTED_FEATURES = 0x90d
(d54) xc: elf_xen_parse_note: PAE_MODE = "yes"
(d54) xc: elf_xen_parse_note: LOADER = "generic"
(d54) xc: elf_xen_parse_note: unknown xen elf note (0xd)
(d54) xc: elf_xen_parse_note: SUSPEND_CANCEL = 0x1
(d54) xc: elf_xen_parse_note: HV_START_LOW = 0xffff800000000000
(d54) xc: elf_xen_parse_note: PADDR_OFFSET = 0x0
(d54) xc: elf_xen_addr_calc_check: addresses:
(d54) xc:ÂÂÂÂÂvirt_baseÂÂÂÂÂÂÂÂ= 0xffffffff80000000
(d54) xc:ÂÂÂÂÂelf_paddr_offset = 0x0
(d54) xc:ÂÂÂÂÂvirt_offsetÂÂÂÂÂÂ= 0xffffffff80000000
(d54) xc:ÂÂÂÂÂvirt_kstartÂÂÂÂÂÂ= 0xffffffff81000000
(d54) xc:ÂÂÂÂÂvirt_kendÂÂÂÂÂÂÂÂ= 0xffffffff81f18000
(d54) xc:ÂÂÂÂÂvirt_entryÂÂÂÂÂÂÂ= 0xffffffff819021f0
(d54) xc:ÂÂÂÂÂp2m_baseÂÂÂÂÂÂÂÂÂ= 0xffffffffffffffff
(d54) domainbuilder: xc_dom_parse_elf_kernel: xen-3.0-x86_64: 
0xffffffff81000000 -> 0xffffffff81f18000
(d54) domainbuilder: xc_dom_build_image: called
(d54) domainbuilder: xc_dom_alloc_pad: called
(d54) domainbuilder: xc_dom_chk_alloc_pages: limits after padding: pfn=1000 
virt=ffffffff81000000
(d54) domainbuilder: xc_dom_chk_alloc_pages: limits after kernel: pfn=1f18 
virt=ffffffff81f18000
(d54) domainbuilder: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x1000+0xf18 
at 0000000020005000
(d54) domainbuilder: xc_dom_alloc_segment:ÂÂÂkernelÂÂÂÂÂÂÂ: 0xffffffff81000000 
-> 0xffffffff81f18000ÂÂ(pfn 0x1000 + 0xf18 pages)
(d54) xc: elf_load_binary: phdr 0 at 0x20005000 -> 0x207cf000
(d54) xc: elf_load_binary: phdr 1 at 0x20805000 -> 0x208f3000
(d54) xc: elf_load_binary: phdr 2 at 0x208f3000 -> 0x20906c00
(d54) xc: elf_load_binary: phdr 3 at 0x20907000 -> 0x20a26000
(d54) domainbuilder: xc_dom_chk_alloc_pages: limits after ramdisk: pfn=4ae0 
virt=ffffffff84ae0000
(d54) domainbuilder: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 
0x1f18+0x2bc8 at 0000000020f1d000
(d54) domainbuilder: xc_dom_alloc_segment:ÂÂÂramdiskÂÂÂÂÂÂ: 0xffffffff81f18000 
-> 0xffffffff84ae0000ÂÂ(pfn 0x1f18 + 0x2bc8 pages)
(d54) domainbuilder: alloc_p2m_list_x86_64: called
(d54) domainbuilder: alloc_p2m_list: called
(d54) domainbuilder: xc_dom_chk_alloc_pages: limits after phys2mach: pfn=4be0 
virt=ffffffff84be0000
(d54) domainbuilder: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x4ae0+0x100 
at 0000000023ae5000
(d54) domainbuilder: xc_dom_alloc_segment:ÂÂÂphys2machÂÂÂÂ: 0xffffffff84ae0000 
-> 0xffffffff84be0000ÂÂ(pfn 0x4ae0 + 0x100 pages)
(d54) domainbuilder: xc_dom_alloc_pageÂÂÂ:ÂÂÂstart infoÂÂÂ: 0xffffffff84be0000 
(pfn 0x4be0)
(d54) domainbuilder: xc_dom_alloc_pageÂÂÂ:ÂÂÂxenstoreÂÂÂÂÂ: 0xffffffff84be1000 
(pfn 0x4be1)
(d54) domainbuilder: xc_dom_alloc_pageÂÂÂ:ÂÂÂconsoleÂÂÂÂÂÂ: 0xffffffff84be2000 
(pfn 0x4be2)
(d54) domainbuilder: alloc_pgtables: called
(d54) domainbuilder: count_pgtables: 0x0000007fffffffff/39: 0x0000ff8000000000 
-> 0x0000ffffffffffff, 1 table(s)
(d54) domainbuilder: count_pgtables: 0x000000003fffffff/30: 0x0000ffff80000000 
-> 0x0000ffffbfffffff, 1 table(s)
(d54) domainbuilder: count_pgtables: 0x00000000001fffff/21: 0x0000ffff80000000 
-> 0x0000ffff84ffffff, 40 table(s)
(d54) domainbuilder: alloc_pgtables, wants 43 PT pages
(d54) domainbuilder: xc_dom_chk_alloc_pages: limits after page tables: pfn=4c0e 
virt=ffffffff84c0e000
(d54) domainbuilder: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x4be3+0x2b 
at 0000000023be5000
(d54) domainbuilder: xc_dom_alloc_segment:ÂÂÂpage tablesÂÂ: 0xffffffff84be3000 
-> 0xffffffff84c0e000ÂÂ(pfn 0x4be3 + 0x2b pages)
(d54) domainbuilder: xc_dom_alloc_pageÂÂÂ:ÂÂÂboot stackÂÂÂ: 0xffffffff84c0e000 
(pfn 0x4c0e)
(d54) domainbuilder: xc_dom_build_imageÂÂ: virt_alloc_end : 0xffffffff84c0f000
(d54) domainbuilder: xc_dom_build_imageÂÂ: virt_pgtab_end : 0xffffffff85000000
(d54) domainbuilder: xc_dom_alloc_pad: called
(d54) domainbuilder: xc_dom_chk_alloc_pages: limits after padding: pfn=5000 
virt=ffffffff85000000
(d54) domainbuilder: xc_dom_compat_check: supported guest type: xen-3.0-x86_64 
<= matches
(d54) domainbuilder: xc_dom_compat_check: supported guest type: xen-3.0-x86_32p
(d54) domainbuilder: xc_dom_compat_check: supported guest type: hvm-3.0-x86_32
(d54) domainbuilder: xc_dom_compat_check: supported guest type: hvm-3.0-x86_32p
(d54) domainbuilder: xc_dom_compat_check: supported guest type: hvm-3.0-x86_64
(d54) virt base at ffffffff80000000
(d54) bootstack_pfn 4c0e
(d54) _boot_target ffffffff84c0e000
(d54) domainbuilder: xc_dom_update_guest_p2m: dst 64bit, pages 0x20000
(d54) domainbuilder: get_pg_table_x86: PFN 0x4be3
(d54) domainbuilder: get_pg_table_x86: PFN 0x4be4
(d54) domainbuilder: get_pg_table_x86: PFN 0x4be5
(d54) domainbuilder: get_pg_table_x86: PFN 0x4be6
(d54) domainbuilder: xc_dom_pfn_to_ptr_retcount: domU mapping: pfn 0x4be0+0x1 
at 0000000023c10000
(d54) domainbuilder: start_info_x86_64: called
(d54) domainbuilder: domain builder memory footprint
(d54) domainbuilder:ÂÂÂÂallocated
(d54) domainbuilder:ÂÂÂÂÂÂÂmallocÂÂÂÂÂÂÂÂÂÂÂÂÂ: 123 kB
(d54) domainbuilder:ÂÂÂÂÂÂÂanon mmapÂÂÂÂÂÂÂÂÂÂ: 0 bytes
(d54) domainbuilder:ÂÂÂÂmapped
(d54) domainbuilder:ÂÂÂÂÂÂÂfile mmapÂÂÂÂÂÂÂÂÂÂ: 0 bytes
(d54) domainbuilder:ÂÂÂÂÂÂÂdomU mmapÂÂÂÂÂÂÂÂÂÂ: 60 MB
(d54) Unmap pfns 0 .. 0x4c0f
(d54) REBUILT Nov 30 2015 16:09:45
(d54) Pinning the boot page table pfn 4be3 / mfn 1bfd71/1bfd71
(d54) pin_table: MFN 1bfd71
(XEN) mm.c:2417:d54v0 Bad type (saw 1400000000000001 != exp 7000000000000000) 
for mfn 165b81 (pfn 4d81)
(XEN) mm.c:892:d54v0 Could not get page type PGT_writable_page
(XEN) mm.c:944:d54v0 Error getting mfn 165b81 (pfn 4d81) from L1 entry 
0000000165b81023 for l1e_owner=54, pg_owner=54
(XEN) mm.c:1258:d54v0 Failure in alloc_l1_table: entry 385
(XEN) mm.c:2164:d54v0 Error while validating mfn 1bfd9a (pfn ab9a) for type 
1000000000000000: caf=8000000000000002 taf=1000000000000001
(XEN) mm.c:952:d54v0 Attempt to create linear p.t. with write perms
(XEN) mm.c:1334:d54v0 Failure in alloc_l2_table: entry 38
(XEN) mm.c:2164:d54v0 Error while validating mfn 1bfd73 (pfn ab73) for type 
2000000000000000: caf=8000000000000002 taf=2000000000000001
(XEN) mm.c:994:d54v0 Attempt to create linear p.t. with write perms
(XEN) mm.c:1416:d54v0 Failure in alloc_l3_table: entry 510
(XEN) mm.c:2164:d54v0 Error while validating mfn 1bfd72 (pfn ab72) for type 
3000000000000000: caf=8000000000000002 taf=3000000000000001
(XEN) mm.c:1018:d54v0 Attempt to create linear p.t. with write perms
(XEN) mm.c:1495:d54v0 Failure in alloc_l4_table: entry 511
(XEN) mm.c:2164:d54v0 Error while validating mfn 1bfd71 (pfn ab71) for type 
4000000000000000: caf=8000000000000002 taf=4000000000000001
(XEN) mm.c:3067:d54v0 Error while pinning mfn 1bfd71
(d54) domainbuilder: xc_dom_release: called
(d54) close(3)
> 
> 
> Juergen
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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