From: Pasi =?iso-8859-1?Q?K=E4rkk=E4inen?= Subject: Linux 2.6.31 domU crashes very early on RHEL5 Xen hypervisor (xen_load_gdt_boot / HYPERVISOR_update_va_mapping) Date: Thu, 24 Sep 2009 12:06:13 +0300 Message-ID: <20090924090613.GN31123@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: fedora-xen-bounces@redhat.com Errors-To: fedora-xen-bounces@redhat.com To: xen-devel@lists.xensource.com Cc: Jeremy Fitzhardinge , fedora-xen@redhat.com List-Id: xen-devel@lists.xenproject.org Hello, I tried running the latest Fedora 12 rawhide kernel (2.6.31-33.fc12.x86_64) as Xen domU on RHEL5.4 x86_64 Xen dom0. domU kernel crashes very early, there's no console output at all. # /usr/lib64/xen/bin/xenctx -s System.map-2.6.31-33.fc12.x86_64 1 rip: ffffffff819f8d3f xen_load_gdt_boot+0xab rsp: ffffffff81743f08 rax: ffffffea rbx: ffffffff81822000 rcx: 0021f527 rdx: 00000000 rsi: 800000021f527061 rdi: ffffffff81822000 rbp: ffffffff81743fa8 r8: 00000000 r9: 00000000 r10: 00000000 r11: 00000000 r12: ffffffff81743fb8 r13: ffffffff81743f50 r14: 00000080 r15: 00000000 cs: 0000e033 ds: 00000000 fs: 00000000 gs: 00000000 Stack: 000000000021f527 0000000000000000 ffffffff819f8d3f 000000010000e030 0000000000010082 ffffffff81743f48 000000000000e02b ffffffff819f8d3b 0000000000000000 0000000000000000 0000000000000000 0000000000000000 0000000000001822 0000008000000000 ffffffff8100cb0e 0000000000000000 Code: 20 c3 78 81 31 d2 48 89 c6 48 89 df e8 85 04 61 ff 85 c0 74 04 <0f> 0b eb fe 49 63 c7 48 81 c3 00 Call Trace: [] xen_load_gdt_boot+0xab <-- [] xen_load_gdt_boot+0xab [] xen_load_gdt_boot+0xa7 [] p2m_top_index+0x9 [] switch_to_new_gdt+0x31 [] xen_start_kernel+0x282 # gdb vmlinux (gdb) x/i 0xffffffff819f8d3f 0xffffffff819f8d3f : ud2a (gdb) x/60i xen_load_gdt_boot 0xffffffff819f8c94 : push %rbp 0xffffffff819f8c95 : mov %rsp,%rbp 0xffffffff819f8c98 : push %r15 0xffffffff819f8c9a : xor %r15d,%r15d 0xffffffff819f8c9d : push %r14 0xffffffff819f8c9f : push %r13 0xffffffff819f8ca1 : push %r12 0xffffffff819f8ca3 : mov %rdi,%r12 0xffffffff819f8ca6 : push %rbx 0xffffffff819f8ca7 : sub $0x18,%rsp 0xffffffff819f8cab : movzwl (%rdi),%eax 0xffffffff819f8cae : mov 0x2(%rdi),%rbx 0xffffffff819f8cb2 : inc %eax 0xffffffff819f8cb4 : mov %eax,%r14d 0xffffffff819f8cb7 : mov %eax,-0x34(%rbp) 0xffffffff819f8cba : lea 0xfff(%r14),%rax 0xffffffff819f8cc1 : shr $0xc,%rax 0xffffffff819f8cc5 : lea 0x1e(,%rax,8),%rax 0xffffffff819f8ccd : and $0x7f0,%eax 0xffffffff819f8cd2 : sub %rax,%rsp 0xffffffff819f8cd5 : lea 0xf(%rsp),%r13 0xffffffff819f8cda : and $0xfffffffffffffff0,%r13 0xffffffff819f8cde : test $0xfff,%ebx 0xffffffff819f8ce4 : je 0xffffffff819f8d55 0xffffffff819f8ce6 : ud2a 0xffffffff819f8ce8 : jmp 0xffffffff819f8ce8 0xffffffff819f8cea : mov %rbx,%rdi 0xffffffff819f8ced : callq 0xffffffff8103ecfc <__phys_addr> 0xffffffff819f8cf2 : mov %rax,%rsi 0xffffffff819f8cf5 : shr $0xc,%rsi 0xffffffff819f8cf9 : mov %rsi,%rdi 0xffffffff819f8cfc : mov %rsi,-0x40(%rbp) 0xffffffff819f8d00 : callq 0xffffffff8100b397 0xffffffff819f8d05 : mov -0x40(%rbp),%rsi 0xffffffff819f8d09 : mov %rax,%rcx 0xffffffff819f8d0c : mov $0x8000000000000161,%rax 0xffffffff819f8d16 : and -0x1e362d(%rip),%rax # 0xffffffff818156f0 <__supported_pte_mask> 0xffffffff819f8d1d : mov %rsi,%rdi 0xffffffff819f8d20 : shl $0xc,%rdi 0xffffffff819f8d24 : or %rax,%rdi 0xffffffff819f8d27 : callq *0xffffffff8178c320 0xffffffff819f8d2e : xor %edx,%edx 0xffffffff819f8d30 : mov %rax,%rsi 0xffffffff819f8d33 : mov %rbx,%rdi 0xffffffff819f8d36 : callq 0xffffffff810091c0 0xffffffff819f8d3b : test %eax,%eax 0xffffffff819f8d3d : je 0xffffffff819f8d43 0xffffffff819f8d3f : ud2a 0xffffffff819f8d41 : jmp 0xffffffff819f8d41 0xffffffff819f8d43 : movslq %r15d,%rax 0xffffffff819f8d46 : add $0x1000,%rbx 0xffffffff819f8d4d : inc %r15d 0xffffffff819f8d50 : mov %rcx,0x0(%r13,%rax,8) 0xffffffff819f8d55 : mov %r14,%rax 0xffffffff819f8d58 : add 0x2(%r12),%rax 0xffffffff819f8d5d : cmp %rax,%rbx 0xffffffff819f8d60 : jb 0xffffffff819f8cea 0xffffffff819f8d62 : mov -0x34(%rbp),%esi 0xffffffff819f8d65 : mov %r13,%rdi 0xffffffff819f8d68 : shr $0x3,%esi (gdb) So that translates to: if (HYPERVISOR_update_va_mapping((unsigned long)va, pte, 0)) BUG(); return value was -EINVAL Any ideas? I also opened fedora bugzilla entry here: https://bugzilla.redhat.com/show_bug.cgi?id=525290 -- Pasi