[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Multiple issues with event channel on Xen on ARM
Hello David, I'm currently trying to use Linux 3.14-rc1 as Linux guest on Xen on ARM (Xen 4.4-rc3). I have multiple issues with your event channel patch series on Linux and Xen side. I tried to use Linux 3.14-rc1 as dom0 but it was worst (unable to create guests). I'm using a simple guest config: kernel="/root/zImage" memory=32 name="test" vcpus=1 autoballon="off" extra="console=hvc0" If everything is ok, I should see that Linux is unable to find the root filesystem. But here, Linux is stucked. From Linux side, after bisecting, I found that the offending commit is: xen/events: remove unnecessary init_evtchn_cpu_bindings() Because the guest-side binding of an event to a VCPU (i.e., setting the local per-cpu masks) is always explicitly done after an event channel is bound to a port, there is no need to initialize all possible events as bound to VCPU 0 at start of day or after a resume. Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx> With this patch, the function __xen_evtchn_do_upcall won't be able to find an events (pendings_bits == 0 every time). It seems the second part of init_evtchn_cpu_bindings is necessary on ARM. Now, if I'm using Linux 3.14-rc1 as guest and trying to destroy the domain, I get this following Xen trace: (XEN) Assertion 'slot >= 0 && slot < DOMHEAP_ENTRIES' failed, line 334, file mm.c (XEN) Xen BUG at mm.c:334 (XEN) CPU1: Unexpected Trap: Undefined Instruction (XEN) ----[ Xen-4.4-rc2 arm32 debug=y Tainted: C ]---- (XEN) CPU: 1 (XEN) PC: 0023f7d0 __bug+0x28/0x44 (XEN) CPSR: 2000015a MODE:Hypervisor (XEN) R0: 002646dc R1: 00000003 R2: 3fd21d80 R3: 00000fff (XEN) R4: 002612b4 R5: 0000014e R6: 00000c00 R7: 00000000 (XEN) R8: 4007f080 R9: 9ed7e000 R10:7e9ed6e8 R11:7ffdfd64 R12:00000004 (XEN) HYP: SP: 7ffdfd5c LR: 0023f7d0 (XEN) (XEN) VTCR_EL2: 80002558 (XEN) VTTBR_EL2: 00010002f9ffc000 (XEN) (XEN) SCTLR_EL2: 30cd187f (XEN) HCR_EL2: 0000000000282835 (XEN) TTBR0_EL2: 00000000be016000 (XEN) (XEN) ESR_EL2: 00000000 (XEN) HPFAR_EL2: 0000000000fff110 (XEN) HDFAR: a0800f00 (XEN) HIFAR: 00000000 (XEN) (XEN) Xen stack trace from sp=7ffdfd5c: (XEN) 00000001 7ffdfd74 00247d6c 40076000 10011000 7ffdfd84 0020b17c 40076000 (XEN) 4007f000 7ffdfd94 0020b1d0 40025b70 40076000 7ffdfda4 0020bd3c 4007f000 (XEN) 00000000 7ffdfdc4 0020b024 00000000 8000da84 4007f000 76f9a004 7ffdff58 (XEN) 00000005 7ffdfddc 00207f80 00000001 8000da84 4007f000 76f9a004 7ffdfeec (XEN) 00206050 00002002 00000000 00002100 00000000 00000000 00000000 00000000 (XEN) 00000000 00000000 00000000 000be077 00000000 2e3022e0 00000000 00000001 (XEN) 00000000 00000000 238c3fd2 604c3b53 fe4aec89 e4988389 00000000 00000002 (XEN) 00000009 76ef0003 76fb7680 76ecf000 00000000 7e9ed7cc 00000001 76fb3140 (XEN) 00000001 00000005 00000000 00036718 76df3018 0003e740 00000001 7e9ed79c (XEN) 76fb2000 76f20000 0005e770 76f23c70 76fb24c0 00000000 76c00740 7e9ed80c (XEN) 76fa5857 00000000 00000001 00000005 00000000 7e9ed7bc 76efe04c 00000001 (XEN) 00035830 00035030 00000003 7ffdfedc 8000da84 00000ea1 00000005 7ffdff58 (XEN) 00000005 9ed7e000 7e9ed6e8 7ffdff54 0024cee0 76fb7578 0022c540 0022c334 (XEN) 00000001 002ae000 002b1ff0 002e7614 400238d8 0000000d 00000000 7ffdff3c (XEN) 7e9ed594 9ecad680 00000005 00305000 00000005 9ed7e000 76fb7578 9ecad680 (XEN) 00000005 00305000 00000005 9ed7e000 7e9ed6e8 7ffdff58 0024f6d0 76f9a004 (XEN) 76f23c70 76fb7578 76fb3140 76fb7578 9ecad680 00000005 00305000 00000005 (XEN) 9ed7e000 7e9ed6e8 9f4172d0 00000024 ffffffff 76f141e4 8000da84 60000013 (XEN) 00000000 7e9ed6ac 80551900 80011cc0 9ed7feac 801f6e9c 8055190c 80011fc0 (XEN) 80551918 80011ea0 00000000 00000000 00000000 00000000 00000000 00000000 (XEN) Xen call trace: (XEN) [<0023f7d0>] __bug+0x28/0x44 (PC) (XEN) [<0023f7d0>] __bug+0x28/0x44 (LR) (XEN) [<00247d6c>] domain_page_map_to_mfn+0x50/0xb4 (XEN) [<0020b17c>] unmap_guest_page+0x20/0x54 (XEN) [<0020b1d0>] cleanup_control_block+0x20/0x34 (XEN) [<0020bd3c>] evtchn_fifo_destroy+0x2c/0x6c (XEN) [<0020b024>] evtchn_destroy+0x1a8/0x1b0 (XEN) [<00207f80>] domain_kill+0x60/0x128 (XEN) [<00206050>] do_domctl+0xa7c/0x1104 (XEN) [<0024cee0>] do_trap_hypervisor+0xad8/0xd78 (XEN) [<0024f6d0>] return_from_trap+0/0x4 (XEN) I will try to give more input tomorrow for the Xen bug. Sincerely yours, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |