Received: from eggs.gnu.org ([2001:4830:134:3::10]:45197) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAihw-00005b-P9 for qemu-devel@nongnu.org; Fri, 25 Jul 2014 12:51:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAihn-0005oh-A5 for qemu-devel@nongnu.org; Fri, 25 Jul 2014 12:51:00 -0400 Received: from indium.canonical.com ([91.189.90.7]:56644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAihn-0005oa-1l for qemu-devel@nongnu.org; Fri, 25 Jul 2014 12:50:51 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1XAihm-0004Tf-BD for ; Fri, 25 Jul 2014 16:50:50 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 420E22E80C4 for ; Fri, 25 Jul 2014 16:50:50 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 25 Jul 2014 16:41:17 -0000 From: Joel Schopp <1348719@bugs.launchpad.net> Sender: bounces@canonical.com References: <20140725164118.19190.210.malonedeb@wampee.canonical.com> Message-Id: <20140725164118.19190.210.malonedeb@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1348719] [NEW] arm64: -smp 2 hangs qemu Reply-To: Bug 1348719 <1348719@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: It appears that smp is broken on qemu for arm64. I'm looking into the root cause but am curious if others can reproduce in their environments. Tested with commit f368c33d5ab09dd5656924185cd975b11838cd25 (July 22) from https://github.com/qemu/qemu.git [root@joelaarch64 ~]# /usr/local/bin/qemu-system-aarch64 --version QEMU emulator version 2.0.93, Copyright (c) 2003-2008 Fabrice Bellard works fine: qemu --enable-kvm -nographic -netdev tap,id=3Dt0,ifname=3Dtap0,script=3Dno,= downscript=3Dno,vhost=3Don -device virtio-net-device,netdev=3Dt0,id=3Dnic0 = -kernel /extra/rootfs/boot/Image -drive file=3D/extra/Styx-Acadia-42-2014-0= 7-07_10-09-27.img,id=3Dfs -device virtio-blk-device,drive=3Dfs -m 1024 -M v= irt -cpu host -smp 1 -append "console=3DttyAMA0 console=3DttyS0 root=3D/dev= /vda2" hangs: qemu --enable-kvm -nographic -netdev tap,id=3Dt0,ifname=3Dtap0,script=3Dno,= downscript=3Dno,vhost=3Don -device virtio-net-device,netdev=3Dt0,id=3Dnic0 = -kernel /extra/rootfs/boot/Image -drive file=3D/extra/Styx-Acadia-42-2014-0= 7-07_10-09-27.img,id=3Dfs -device virtio-blk-device,drive=3Dfs -m 1024 -M v= irt -cpu host -smp 2 -append "console=3DttyAMA0 console=3DttyS0 root=3D/dev= /vda2" (gdb) t [Current thread is 1 (Thread 0x3ffb6787cc0 (LWP 7619))] (gdb) bt #0 0x000003ffb6e50330 in ppoll () from /lib64/libc.so.6 #1 0x00000000006631a0 in ppoll (__ss=3D0x0, __timeout=3D0x0, __nfds=3D, __fds=3D) at /usr/include/bits/poll2.h:77 #2 qemu_poll_ns (fds=3D, nfds=3D, timeout=3D= ) at qemu-timer.c:314 #3 0x0000000000662878 in os_host_main_loop_wait (timeout=3D= ) at main-loop.c:229 #4 main_loop_wait (nonblocking=3D) at main-loop.c:484 #5 0x000000000040fdf4 in main_loop () at vl.c:2010 #6 main (argc=3D, argv=3D, envp=3D) at vl.c:4541 (gdb) t [Current thread is 1 (Thread 0x3ffb6787cc0 (LWP 7619))] (gdb) t 2 [Switching to thread 2 (Thread 0x3ffb64beef0 (LWP 7622))] #0 0x000003ffb6f10a44 in sigwait () from /lib64/libpthread.so.0 (gdb) bt #0 0x000003ffb6f10a44 in sigwait () from /lib64/libpthread.so.0 #1 0x000000000069d78c in sigwait_compat (opaque=3D0xd752c0) at util/compat= fd.c:36 #2 0x000003ffb6f07c20 in start_thread () from /lib64/libpthread.so.0 #3 0x000003ffb6e5a80c in clone () from /lib64/libc.so.6 ** Affects: qemu Importance: Undecided Status: New -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1348719 Title: arm64: -smp 2 hangs qemu Status in QEMU: New Bug description: It appears that smp is broken on qemu for arm64. I'm looking into the root cause but am curious if others can reproduce in their environments. Tested with commit f368c33d5ab09dd5656924185cd975b11838cd25 (July 22) from https://github.com/qemu/qemu.git [root@joelaarch64 ~]# /usr/local/bin/qemu-system-aarch64 --version QEMU emulator version 2.0.93, Copyright (c) 2003-2008 Fabrice Bellard works fine: qemu --enable-kvm -nographic -netdev tap,id=3Dt0,ifname=3Dtap0,script=3Dn= o,downscript=3Dno,vhost=3Don -device virtio-net-device,netdev=3Dt0,id=3Dnic= 0 -kernel /extra/rootfs/boot/Image -drive file=3D/extra/Styx-Acadia-42-2014= -07-07_10-09-27.img,id=3Dfs -device virtio-blk-device,drive=3Dfs -m 1024 -M= virt -cpu host -smp 1 -append "console=3DttyAMA0 console=3DttyS0 root=3D/d= ev/vda2" hangs: qemu --enable-kvm -nographic -netdev tap,id=3Dt0,ifname=3Dtap0,script=3Dn= o,downscript=3Dno,vhost=3Don -device virtio-net-device,netdev=3Dt0,id=3Dnic= 0 -kernel /extra/rootfs/boot/Image -drive file=3D/extra/Styx-Acadia-42-2014= -07-07_10-09-27.img,id=3Dfs -device virtio-blk-device,drive=3Dfs -m 1024 -M= virt -cpu host -smp 2 -append "console=3DttyAMA0 console=3DttyS0 root=3D/d= ev/vda2" (gdb) t [Current thread is 1 (Thread 0x3ffb6787cc0 (LWP 7619))] (gdb) bt #0 0x000003ffb6e50330 in ppoll () from /lib64/libc.so.6 #1 0x00000000006631a0 in ppoll (__ss=3D0x0, __timeout=3D0x0, __nfds=3D, __fds=3D) at /usr/include/bits/poll2.h:77 #2 qemu_poll_ns (fds=3D, nfds=3D, timeout= =3D) at qemu-timer.c:314 #3 0x0000000000662878 in os_host_main_loop_wait (timeout=3D) at main-loop.c:229 #4 main_loop_wait (nonblocking=3D) at main-loop.c:484 #5 0x000000000040fdf4 in main_loop () at vl.c:2010 #6 main (argc=3D, argv=3D, envp=3D) at vl.c:4541 (gdb) t [Current thread is 1 (Thread 0x3ffb6787cc0 (LWP 7619))] (gdb) t 2 [Switching to thread 2 (Thread 0x3ffb64beef0 (LWP 7622))] #0 0x000003ffb6f10a44 in sigwait () from /lib64/libpthread.so.0 (gdb) bt #0 0x000003ffb6f10a44 in sigwait () from /lib64/libpthread.so.0 #1 0x000000000069d78c in sigwait_compat (opaque=3D0xd752c0) at util/comp= atfd.c:36 #2 0x000003ffb6f07c20 in start_thread () from /lib64/libpthread.so.0 #3 0x000003ffb6e5a80c in clone () from /lib64/libc.so.6 To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1348719/+subscriptions