All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] XP install cores with SCSI LSI 53C895A disks - follow up
@ 2012-11-04 10:20 Gerhard Wiesinger
  2012-11-05 12:54 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: Gerhard Wiesinger @ 2012-11-04 10:20 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini

Hello,

Clean XP install cores with SCSI LSI 53C89A disk when copying files. 
Isn't on the same file, so looks like a timing problem. Reproduceable. 
Driver used is sym_hi. Details are below.

See also: 
https://lists.gnu.org/archive/html/qemu-devel/2012-03/msg00523.html

Looks like problem is from Paolo's commit: 
2f0772c5b4818d4b2078be9dace0036d1030faee
qemu-system-x86_64: hw/lsi53c895a.c:351: lsi_soft_reset: Assertion 
`((&s->queue)->tqh_first == ((void *)0))' failed.

So SCSI queue isn't empty (was an assumption and asserted), so 
qdev_reset_all(&s->dev.qdev); might not work or some other timing 
related issues.

Any ideas to solve?
Reproduceable?

I'm using BIOS from SEABIOS.

Thank you.

Ciao,
Gerhard

Image created with:
qemu-img create -f qcow2 XP-TEST.qcow2 10G

qemu-kvm: 4d9367b76f71c6d938cf8201392abe4bfb1136cb
/root/download/qemu/git/qemu-kvm/x86_64-softmmu/qemu-system-x86_64
-device nec-usb-xhci,id=usb0
-drive file=VM-XP-TEST/XP-TEST.qcow2,media=disk,if=scsi,bus=0,unit=0
-drive if=ide,index=3,media=cdrom,file=ISO/XP.iso
-boot order=dac,menu=on
-m 2048 -k de
-vga vmware
-vnc :0 -bios /root/download/seabios/git/seabios/out/bios.bin
-chardev stdio,id=seabios -device isa-debugcon,iobase=0x402,chardev=seabios
-device rtl8139,mac=00:02:44:92:87:6a,vlan=0,romfile= -net 
tap,ifname=tap0,script=no,downscript=no,vlan=0

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] XP install cores with SCSI LSI 53C895A disks - follow up
  2012-11-04 10:20 [Qemu-devel] XP install cores with SCSI LSI 53C895A disks - follow up Gerhard Wiesinger
@ 2012-11-05 12:54 ` Paolo Bonzini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2012-11-05 12:54 UTC (permalink / raw)
  To: Gerhard Wiesinger; +Cc: qemu-devel

Il 04/11/2012 11:20, Gerhard Wiesinger ha scritto:
> Hello,
> 
> Clean XP install cores with SCSI LSI 53C89A disk when copying files.
> Isn't on the same file, so looks like a timing problem. Reproduceable.
> Driver used is sym_hi. Details are below.

Hmm, why is XP resetting the HBA while copying files?  Can you get
logging output when compiling with hw/lsi53c895a.c with DEBUG_LSI defined?

> See also:
> https://lists.gnu.org/archive/html/qemu-devel/2012-03/msg00523.html
> 
> Looks like problem is from Paolo's commit:
> 2f0772c5b4818d4b2078be9dace0036d1030faee
> qemu-system-x86_64: hw/lsi53c895a.c:351: lsi_soft_reset: Assertion
> `((&s->queue)->tqh_first == ((void *)0))' failed.
> 
> So SCSI queue isn't empty (was an assumption and asserted), so
> qdev_reset_all(&s->dev.qdev); might not work or some other timing
> related issues.

Even before that commit, it probably would result in a use-after-free or
similar problem.

Thanks!

Paolo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-05 12:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-04 10:20 [Qemu-devel] XP install cores with SCSI LSI 53C895A disks - follow up Gerhard Wiesinger
2012-11-05 12:54 ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.