WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] 2.6.38 PV Guest boot failure - error while pinning mfn..

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] 2.6.38 PV Guest boot failure - error while pinning mfn..
From: Shriram Rajagopalan <rshriram@xxxxxxxxx>
Date: Sat, 19 Mar 2011 18:22:17 -0700
Delivery-date: Sat, 19 Mar 2011 18:23:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: rshriram@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
The kernel is built from konrad's tree, devel/next-2.6.39
commit:f4ddaaf4338999227b3f724615d8aecbe88d3f04

64 bit PV guest, 64 bit dom0, xen 4.1.0-rc7-pre
I have not been able to boot a pv domU, with the above kernel.

xl debug shows:
(XEN) mm.c:2389:d26 Bad type (saw 7400000000000001 != exp 1000000000000000) for mfn 6650b5 (pfn 7cfcc)
(XEN) mm.c:2965:d26 Error while pinning mfn 6650b5
(XEN) traps.c:451:d26 Unhandled invalid opcode fault/trap [#6] on VCPU 0 [ec=0000]
(XEN) domain_crash_sync called from entry.S
(XEN) Domain 26 (vcpu#0) crashed on cpu#7:
(XEN) ----[ Xen-4.1.0-rc7-pre  x86_64  debug=y  Not tainted ]----
(XEN) CPU:    7
(XEN) RIP:    e033:[<ffffffff81004a75>]
(XEN) RFLAGS: 0000000000000282   EM: 1   CONTEXT: pv guest
(XEN) rax: 00000000ffffffea   rbx: ffff88007cfcc000   rcx: ffffffff81a3e000
(XEN) rdx: 00000000deadbeef   rsi: 00000000deadbeef   rdi: 00000000deadbeef
(XEN) rbp: ffffffff81801c18   rsp: ffffffff81801bb8   r8:  00003ffffffff000
(XEN) r9:  ffff880000000000   r10: 00000000deadbeef   r11: 0000000000000000
(XEN) r12: ffffffffff4b8f40   r13: 00000000000001e8   r14: ffffffffff4f8000
(XEN) r15: 0000000000000000   cr0: 000000008005003b   cr4: 00000000000026f0
(XEN) cr3: 00000004040b7000   cr2: 0000000000000000
(XEN) ds: 0000   es: 0000   fs: 0000   gs: 0000   ss: e02b   cs: e033
(XEN) Guest stack trace from rsp=ffffffff81801bb8:
(XEN)    ffffffff81a3e000 0000000000000000 ffffffff81004a75 000000010000e030
(XEN)    0000000000010082 ffffffff81801bf8 000000000000e02b ffffffff81004a71
(XEN)    ffffffff00000000 00000000006650b5 ffffffffff4f8000 ffff88007cfcc000
(XEN)    ffffffff81801c38 ffffffff8189b73d 000000007d000000 000000000007cfcc
(XEN)    ffffffff81801c58 ffffffff8102f4bc ffffffffff4b8f40 000000007d000000
(XEN)    ffffffff81801cf8 ffffffff818d6b35 ffffffff8100654b 8000000000000163
(XEN)    0000000100000001 ffffffffff4b8000 0000000000001000 80000000000001e3
(XEN)    8000000000000163 000000007d800000 000000007d200000 0000000000000000
(XEN)    ffffffff81801cc8 000000007cfcc000 ffffffff81801cf8 ffffffffff478008
(XEN)    ffffffffff4b8000 0000000040000000 0000000040000000 000000007d800000
(XEN)    ffffffff81801d88 ffffffff818d6d75 ffff88007d800000 8000000000000163
(XEN)    ffffffffff478000 0000000000000000 0000000000000000 0000000000000000
(XEN)    000000017d800000 0000000000000000 ffff88007d800000 000000007cde3000
(XEN)    ffffffff81801d68 ffffffffff478000 ffff88007d800000 0000000000000000
(XEN)    ffff88007d800000 0000000000000000 ffffffff81801df8 ffffffff818d6ee5
(XEN)    ffffffff81801df8 000000007d800000 ffff880000000000 000000007d800000
(XEN)    ffffffff81801dc8 00000000003ef000 0000000000000001 0000000000000000
(XEN)    0000000000000001 ffffffff81801e30 0000000000000001 ffffffff81734cc2
(XEN)    ffffffff81801ec8 ffffffff81473a10 ffffffff81801e98 0000000000000000
(XEN)    0000000000000000 000000007d800000 0000000000000000 0000000040000000

xenctx output:
rip: ffffffff81004a75 pin_pagetable_pfn+0x31
flags: 00001282 i s nz
rsp: ffffffff81801bb8
rax: 00000000ffffffea    rcx: ffffffff81a3e000    rdx: 00000000deadbeef
rbx: ffff88007cfcc000    rsi: 00000000deadbeef    rdi: 00000000deadbeef
rbp: ffffffff81801c18     r8: 00003ffffffff000     r9: ffff880000000000
r10: 00000000deadbeef    r11: 0000000000000000    r12: ffffffffff4b8f40
r13: 00000000000001e8    r14: ffffffffff4f8000    r15: 0000000000000000
 cs: e033     ss: e02b     ds: 0000     es: 0000
 fs: 0000 @ 0000000000000000
 gs: 0000 @ ffffffff81882000/0000000000000000
Code (instr addr ffffffff81004a75)
01 00 00 00 31 d2 41 ba f0 7f 00 00 e8 cf c8 ff ff 85 c0 74 04 <0f> 0b eb fe c9 c3 55 48 89 e5 53


Stack:
 ffffffff81a3e000 0000000000000000 ffffffff81004a75 000000010000e030
 0000000000010082 ffffffff81801bf8 000000000000e02b ffffffff81004a71
 ffffffff00000000 00000000006650b5 ffffffffff4f8000 ffff88007cfcc000
 ffffffff81801c38 ffffffff8189b73d 000000007d000000 000000000007cfcc

Stack Trace:
* [<ffffffff81004a75>] pin_pagetable_pfn+0x31  <--
    ffffffff81a3e000
    0000000000000000
  [<ffffffff81004a75>] pin_pagetable_pfn+0x31
    000000010000e030
    0000000000010082
    ffffffff81801bf8
    000000000000e02b
  [<ffffffff81004a71>] pin_pagetable_pfn+0x2d
    ffffffff00000000
    00000000006650b5
    ffffffffff4f8000
    ffff88007cfcc000
    ffffffff81801c38
  [<ffffffff8189b73d>] xen_alloc_pte_init+0x30
    000000007d000000
    000000000007cfcc
    ffffffff81801c58
  [<ffffffff8102f4bc>] T.927+0x2a
    ffffffffff4b8f40
    000000007d000000
    ffffffff81801cf8
  [<ffffffff818d6b35>] phys_pmd_init+0x212
  [<ffffffff8100654b>] __raw_callee_save_xen_restore_fl+0x11
    8000000000000163
    0000000100000001
    ffffffffff4b8000
    0000000000001000
    80000000000001e3
    8000000000000163
    000000007d800000
    000000007d200000
    0000000000000000
    ffffffff81801cc8
    000000007cfcc000
    ffffffff81801cf8
    ffffffffff478008
    ffffffffff4b8000
    0000000040000000
    0000000040000000
    000000007d800000
    ffffffff81801d88
  [<ffffffff818d6d75>] phys_pud_init+0x1f5
    ffff88007d800000
    8000000000000163
    ffffffffff478000
    0000000000000000
    0000000000000000
    0000000000000000
    000000017d800000
    0000000000000000
    ffff88007d800000
    000000007cde3000
    ffffffff81801d68
    ffffffffff478000
    ffff88007d800000
    0000000000000000
    ffff88007d800000
    0000000000000000
    ffffffff81801df8
  [<ffffffff818d6ee5>] kernel_physical_mapping_init+0xd8
    ffffffff81801df8
    000000007d800000
    ffff880000000000
    000000007d800000
    ffffffff81801dc8
    00000000003ef000
    0000000000000001
    0000000000000000
    0000000000000001
    ffffffff81801e30
    0000000000000001
    ffffffff81734cc2
    ffffffff81801ec8
  [<ffffffff81473a10>] init_memory_mapping+0x40c
    ffffffff81801e98
    0000000000000000
    0000000000000000
    000000007d800000
    0000000000000000
    0000000040000000
    000000007d800000
    0000000000000000
    0000000000000000
    0000000000000000
    0000000000000000
    0000000000000000
    0000000000000000
    0000000000000000
    0000000000000000
    0000000000000000
    0000000000000000
    0000000000005000
    0000000000000001
    0000000001a4f000
    0000000000000000
    ffffffff81801f80
    ffffffffffffffff
    0000000000000000
    ffffffff81801f68
  [<ffffffff8189d044>] setup_arch+0x618
    0000000000000000
    ffffffff818d87d0
    0000000000000000
    0000000000000000
    ffffffffffffffff
    0000000000000000
    ffffffff81801f68
  [<ffffffff8148baf6>] printk+0x3c
    ffffffff00000010
    ffffffff81801f78
    ffffffff81801f38
  [<ffffffff8106cc7b>] clockevents_register_notifier+0x3e
    0000000000000000
    ffffffff818d87d0
    0000000000000000
    0000000000000000
    ffffffffffffffff
    0000000000000000
    ffffffff81801fa8
  [<ffffffff81897a3e>] start_kernel+0x90
    ffffffff81801fa8
    ffffffff818da7b0
    0000000001a3c000
    0000000000000000
    0000000000000000
    0000000000000000
    ffffffff81801fc8
  [<ffffffff818972cd>] x86_64_start_reservations+0xb8
    ffffffff8188e610
    ffffffff851cf000
    ffffffff81801ff8
  [<ffffffff8189a799>] xen_start_kernel+0x5ad
    0000000000000001
    0000000000000000
    0000000000000000
    0000000000000000
    0000000000000000
--------------
Any pointers?
p2m_size < nr_pages -1 (0 < 7cfff

The domU kernel config is available at
http://pastebin.com/bq0VeeXY

shriram
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel