arm64: -smp 2 hangs qemu
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| QEMU |
Fix Released
|
Undecided
|
Joel Schopp | ||
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 f368c33d5ab09dd
[root@joelaarch64 ~]# /usr/local/
QEMU emulator version 2.0.93, Copyright (c) 2003-2008 Fabrice Bellard
works fine:
qemu --enable-kvm -nographic -netdev tap,id=
hangs:
qemu --enable-kvm -nographic -netdev tap,id=
(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=0x0, __timeout=0x0, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/
#2 qemu_poll_ns (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at qemu-timer.c:314
#3 0x0000000000662878 in os_host_
#4 main_loop_wait (nonblocking=
#5 0x000000000040fdf4 in main_loop () at vl.c:2010
#6 main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) 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/
(gdb) bt
#0 0x000003ffb6f10a44 in sigwait () from /lib64/
#1 0x000000000069d78c in sigwait_compat (opaque=0xd752c0) at util/compatfd.c:36
#2 0x000003ffb6f07c20 in start_thread () from /lib64/
#3 0x000003ffb6e5a80c in clone () from /lib64/libc.so.6
| Changed in qemu: | |
| assignee: | nobody → Joel Schopp (joel-schopp) |

The combination of a newer kernel and newer qemu make qemu work with -smp 2 . Rather than go figure out what got fixed let's just be happy it did.