Bug 1035644

Summary: rhel7.0host + windows guest + virtio-win + 'chkdsk' in the guest gives qemu assertion in scsi_dma_complete
Product: Red Hat Enterprise Linux 7 Reporter: Sibiao Luo <sluo>
Component: qemu-kvmAssignee: Paolo Bonzini <pbonzini>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, amit.shah, bcao, berrange, cfergeau, dwmw2, ghammer, itamar, juli, juzhang, knoel, pbonzini, rjones, scottt.tw, Shurik, sluo, virt-maint, vrozenfe, xuhan, yvugenfi
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:cbd1ea720361c9d31e55ba0755961526dd5d49b5
Fixed In Version: qemu-kvm-1.5.3-40.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1001617 Environment:
Last Closed: 2014-06-13 11:40:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1001617    
Bug Blocks:    

Comment 4 Paolo Bonzini 2013-11-28 10:53:50 UTC
Patch posted at http://permalink.gmane.org/gmane.comp.emulators.qemu/243754

Comment 6 Paolo Bonzini 2013-12-10 13:25:03 UTC
*** Bug 1038875 has been marked as a duplicate of this bug. ***

Comment 7 Miroslav Rezanina 2014-01-22 07:10:57 UTC
Fix included in qemu-kvm-1.5.3-40.el7

Comment 9 Xu Han 2014-01-27 08:16:51 UTC
Reproduce this bug with component:
qemu-kvm-1.5.3-38.el7.x86_64

Steps:
1. Start Win2k8 R2 guest (2 Virtio SCSI disks).
e.g:# /usr/libexec/qemu-kvm -M pc -S -cpu SandyBridge -enable-kvm -m 2048 -smp 2,sockets=2,cores=1,threads=1 -no-kvm-pit-reinjection -usb -device usb-tablet,id=input0 -name zxc -uuid 990ea161-6b67-47b2-b803-19fb01e30d30 -rtc base=localtime,clock=host,driftfix=slew -device virtio-serial-pci,id=virtio-serial0,max_ports=16,vectors=0,bus=pci.0,addr=0x3 -chardev socket,id=channel1,path=/tmp/helloworld1,server,nowait -device virtserialport,chardev=channel1,name=com.redhat.rhevm.vdsm,bus=virtio-serial0.0,id=port1 -chardev socket,id=channel2,path=/tmp/helloworld2,server,nowait -device virtserialport,chardev=channel2,name=com.redhat.rhevm.vdsm,bus=virtio-serial0.0,id=port2 -drive file=/home/win2008r2-64-virtio.qcow2,if=none,id=drive-system-disk,format=qcow2,aio=native,werror=stop,rerror=stop -device virtio-scsi-pci,bus=pci.0,addr=0x4,id=scsi0 -device scsi-hd,drive=drive-system-disk,bus=scsi0.0,channel=0,scsi-id=0,lun=0,id=system-disk,bootindex=1 -netdev tap,id=hostnet0,vhost=on,script=/etc/qemu-ifup -device virtio-net-pci,netdev=hostnet0,id=virtio-net-pci0,mac=00:01:02:B6:40:11,bus=pci.0,addr=0x5 -device virtio-balloon-pci,id=ballooning,bus=pci.0,addr=0x6 -global PIIX4_PM.disable_s3=0 -global PIIX4_PM.disable_s4=0 -drive file=/home/my-data-disk.qcow2,if=none,id=drive-data-disk,format=qcow2,aio=native,werror=stop,rerror=stop -device scsi-hd,drive=drive-data-disk,bus=scsi0.0,channel=0,scsi-id=0,lun=1,id=data-disk -k en-us -boot menu=on -qmp tcp:0:4444,server,nowait -serial unix:/tmp/ttyS0,server,nowait -vnc :2 -spice disable-ticketing,port=5932 -monitor stdio
2. Start check of guest system disk (chkdsk c: /x /f /v /r).
3. Reboot guest for start checking.

Results:
qemu-kvm: hw/scsi/scsi-disk.c:287: scsi_dma_complete: Assertion `r->req.aiocb != ((void *)0)' failed.
bz1035644-cli: line 1:  8414 Aborted                 (core dumped)
------
Verify this bug with component:
qemu-kvm-1.5.3-41.el7.x86_64

Same steps as above.

Results:
after step 3, guest reboot well after chkdsk checking and it work well.

Base on these test results above, this bug has been fixed.

Comment 11 Ludek Smid 2014-06-13 11:40:27 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.