[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Qemu crashed with lsi booting

From: Paolo Bonzini
Subject: Re: [Qemu-devel] Qemu crashed with lsi booting
Date: Fri, 27 Jul 2012 07:51:29 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1

Il 26/07/2012 10:31, Frediano Ziglio ha scritto:
> sudo ./x86_64-softmmu/qemu-system-x86_64 -m 1024 -hda test.qcow
> -device lsi -drive file=/dev/sdb,if=none,id=XXX -device
> scsi-block,drive=XXX -enable-kvm -bios ~/seabios/out/bios.bin -serial
> file:out.txt
> lsi_scsi: error: Multiple IO pending for request 0x7fd1075bf100
> qemu-system-x86_64: /home/fredianoz/qemu/hw/lsi53c895a.c:774:
> lsi_do_command: Assertion `s->current == ((void *)0)' failed.
> (sometimes I don't get the "Multiple IO ending" line).
> I'm using a recent SeaBIOS which support booting from LSI SCSI.
> Qemu version
> $ git branch -v
> * master 61dc008 Revert "audio: Make PC speaker audio card available by 
> default"
> I'm using SeaBIOS commit 9d6bac1d32b72cdf7c0ad009c1371a2e69084de3
> (some minor changes in order to support 4k sectors).

Can you share them?  4k sectors are not supported by BIOS at all
AFAIK...  Does virtio-scsi work with those changes?

> Adding some debugging to SeaBIOS lsi code seems that drivers send
> initial INQUIRY request but after that all requests have some problems
> and lead to a lot of reset command.

Can you gather tracing output for the following events:


(Perhaps you can also instrument scsi_req_cancel for tracing).

The timing doesn't matter, so you can use the stderr backend:


Place the above list in a file (one tracepoint per line) and then start
QEMU with -trace events=/path/to/file.txt.

You could also try github.com/bonzini/qemu.git, branch scsi-next (it
shouldn't fix anything, but I added a couple more assertions).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]