Re: QEMU hangs with smp option on ubuntu 16.04 ... any fix?

Jun Sun <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <CAP5Nno7gULR=NwbBdk-Vfy8YWr0HUUG2Tsw7u-s9s2apaukyTQ@mail.gmail.com>
After I added "-cpu 34Kf", qemu would start normally again even with "-smp
2" option.

However, "cat /proc/cpuinfo" only shows 1 CPU.  "uname -a" shows the
following which seems to suggest the kernel is not SMP aware.  Is there a
kernel for malta with SMP support?

Linux debian-mips 4.9.0-7-4kc-malta #1 Debian 4.9.110-3+deb9u2 (2018-08-13)
mips GNU/Linux

Thanks.

Jun

On Sat, Oct 6, 2018 at 8:47 AM Jun Sun <[email protected]> wrote:

> Hi, all,
>
> I've been loosely following the instruct at this page,
> https://github.com/kholia/mips-hacking
>
> My host is ubuntu 16.04.  I used ubuntu prebuilt qemu system images.
>
> My guest is the latest stretch 9.5 malta netboot images.  Kernel is
> vmlinux-4.9.0-7-4kc-malta.
>
> Below is my startup script.  If I change "smp" to 2, the startup will hang
> very early on.   Does anybody if this is a known limit with debian distro?
> Or it is an issue with the ubuntu prebuilt qemu?  Or there are some other
> gotcha's here?
>
> qemu-system-mips \
> -M malta \
> -m 256 \
> -hda hda.qcow2 \
> -kernel vmlinux-4.9.0-7-4kc-malta \
> -initrd initrd.img-4.9.0-7-4kc-malta \
>     -append "root=/dev/sda1 console=ttyS0 nokaslr" \
> -nographic \
> -redir tcp:2222::22 \
> -smp 1 \
> \
>
> Cheers.
>
> Jun
>
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.