From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cPbhy-0003N6-PV for qemu-devel@nongnu.org; Fri, 06 Jan 2017 16:05:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cPbht-00089w-S6 for qemu-devel@nongnu.org; Fri, 06 Jan 2017 16:05:54 -0500 Received: from bh-25.webhostbox.net ([208.91.199.152]:39369) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cPbht-00089N-Jm for qemu-devel@nongnu.org; Fri, 06 Jan 2017 16:05:49 -0500 Date: Fri, 6 Jan 2017 13:05:46 -0800 From: Guenter Roeck Message-ID: <20170106210546.GA27764@roeck-us.net> References: <4b04ec32-b647-5047-7830-269cfc217550@ilande.co.uk> <3bee832c-1d2a-50a2-a763-c58ab34caf08@roeck-us.net> <3a90611b-a7c4-31c4-b373-3a16ddae5f4c@ilande.co.uk> <20170106183436.GA19862@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Problems with qemu "modern" virtio on sparc64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mark Cave-Ayland Cc: "qemu-devel@nongnu.org >> QEMU Developers" , "Michael S. Tsirkin" On Fri, Jan 06, 2017 at 07:42:19PM +0000, Mark Cave-Ayland wrote: > On 06/01/17 18:34, Guenter Roeck wrote: > > > On Fri, Jan 06, 2017 at 05:04:58PM +0000, Mark Cave-Ayland wrote: > >> On 30/12/16 19:57, Guenter Roeck wrote: > >> > >> Disabling "modern" mode enables boot to proceed as normal: > >> > >> $ ./qemu-system-sparc64 \ > >> -drive > >> file=debian-9.0-sparc64-NETINST1.iso,if=none,index=0,id=cd,media=cdrom \ > >> -device virtio-blk-pci,disable-modern=on,drive=cd \ > >> -nographic \ > >> -bios openbios-builtin.elf.nostrip \ > >> -m 256 > >> > > ... > >> > >> Guenter, can you try a similar command line and confirm whether it fixes > >> the issue for you under QEMU 2.7 and 2.8? I have no idea as to why the > >> difference in legacy/non-legacy codepaths should crash the kernel though. > >> > > Unfortunately, my qemu command line wizard capabilities are somewhat lacking. > > I had tried that before, but just could not figure out how to change my command > > line to include "disable-modern=on". If you have an idea, please let me know. > > Here it is: > > > > ${QEMU} -M ${mach} -cpu "${cpu}" -m 512 \ > > -drive file=${rootfs},if=virtio \ > > -net nic,model=virtio \ > > -kernel arch/sparc/boot/image -no-reboot \ > > -append "root=/dev/vda init=/sbin/init.sh console=ttyS0" \ > > -nographic > > If you apply the same principles from my example above to your command > line then you should end up with something like: > > ${QEMU} -M ${mach} -cpu "${cpu}" -m 512 \ > -drive file=${rootfs},if=none,id=hd \ > -device virtio-blk-pci,disable-modern=on,drive=hd \ > -net nic,model=virtio \ > -kernel arch/sparc/boot/image -no-reboot \ > -append "root=/dev/vda init=/sbin/init.sh console=ttyS0" \ > -nographic > That works, but only if I drop "-net nic,model=virtio". Otherwise I get the same crash again. Any idea how to set the network configuration the same way ? Thanks, Guenter