I was quickly giving things a check but don't have the time to do the
full matrix:

The old bits from https://people.debian.org/~aurel32/qemu/mipsel/
$ qemu-system-mips64el -M malta -kernel vmlinux-3.2.0-4-4kc-malta -nographic 
-curses

Later the kernels are more obviously split (mipsel/mips64/mips64el) build at 
https://people.debian.org/~jcowgill/qemu-mips/
I can get to run with:
$ qemu-system-mips64el -M malta -cpu MIPS64R2-generic -m 2G -kernel 
vmlinux-4.15.0-1-5kc-malta.mips64el.sid -nographic -curses
$ qemu-system-mips64el -M malta -cpu MIPS64R2-generic -m 2G -kernel 
vmlinux-4.15.0-1-5kc-malta.mipsel.sid -nographic -curses
$ qemu-system-mips64 -M malta -cpu MIPS64R2-generic -m 2G -kernel 
vmlinux-4.15.0-1-5kc-malta.mips.sid -nographic -curses

Zoning in to something close to your kernel that you've tried from 
http://ftp.debian.org/debian/dists/stable/main/installer-mips/current/images/malta/netboot/
works with:
$ qemu-system-mips64 -M malta -cpu MIPS64R2-generic -m 2G -kernel 
vmlinux-4.19.0-10-4kc-malta -nographic -curses

>From here I was slowly getting more similar to your commandline.
Sill works:
$ qemu-system-mips -M malta -m 2G -kernel vmlinux-4.19.0-10-4kc-malta 
-nographic -curses
add initrd:
$ qemu-system-mips -M malta -m 2G -kernel vmlinux-4.19.0-10-4kc-malta -initrd 
initrd-4.19.0-10-4kc-$malta.gz -nographic -curses
Add net:
$ qemu-system-mips -M malta -m 2G -kernel vmlinux-4.19.0-10-4kc-malta -initrd 
initrd-4.19.0-10-4kc-malta.gz -nographic -curses -nographic -device 
e1000,netdev=user.0 -netdev user,id=user.0,hostfwd=tcp::5555-:22
reduce memory:
$ qemu-system-mips -M malta -m 512 -kernel vmlinux-4.19.0-10-4kc-malta -initrd 
initrd-4.19.0-10-4kc-malta.gz -nographic -curses -nographic -device 
e1000,netdev=user.0 -netdev user,id=user.0,hostfwd=tcp::5555-:22
kernel commandline:
$ qemu-system-mips -M malta -m 512 -kernel vmlinux-4.19.0-10-4kc-malta -initrd 
initrd-4.19.0-10-4kc-malta.gz -nographic -curses -nographic -device 
e1000,netdev=user.0 -netdev user,id=user.0,hostfwd=tcp::5555-:22 -append 
"root=/dev/sda1 console=ttyS0"

All that worked, what got it stuck was the smp option that you used.
-smp 1 works
-smp 2 works
-smp 3 stuck
-smp 4 stuck
  qemu-system-mips: /build/qemu-BQ4hMP/qemu-4.2/hw/acpi/cpu.c:198: 
cpu_hotplug_hw_init: Assertion 
  `mc->possible_cpu_arch_ids' failed.
  Aborted (core dumped)
-smp 4 stuck (retry)
[    0.000000] Kernel panic - not syncing: stack-protector: Kernel stack is 
corrupted in: (null)

With more memory I get slightly further until stuck, up to -smp 12
things won't get better.


Not sure how good/bad smp is in emulated mips - we are back to my initial 
question - did this work in the past and regressed - or is it instead an 
upstream feature request for (better) mips emu SMP?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1890069

Title:
  QEMU is not allowing multiple cores with mips architecture

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qemu/+bug/1890069/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to