From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X577G-0002tT-BR for qemu-devel@nongnu.org; Thu, 10 Jul 2014 01:42:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X577B-0007kQ-7x for qemu-devel@nongnu.org; Thu, 10 Jul 2014 01:41:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X577A-0007jq-Vs for qemu-devel@nongnu.org; Thu, 10 Jul 2014 01:41:53 -0400 Date: Thu, 10 Jul 2014 13:42:09 +0800 From: Fam Zheng Message-ID: <20140710054209.GA5161@T430.redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: Subject: Re: [Qemu-devel] dataplane degradation in 2.1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrey Korolyov Cc: "qemu-devel@nongnu.org" On Wed, 07/09 20:50, Andrey Korolyov wrote: > Hello, >=20 > I`ve observed an immediate crash running tagged -rc1 with > virtio-blk(675879f6f3c9463e103735a4e41e9deb0bee9b39). Please take a > look on attached backtrace, hope that the fix still can made its way > to 2.1. 1.6 works well with same config, so it`s clearly a regression. This one should fix it: http://lists.nongnu.org/archive/html/qemu-devel/2014-07/msg01531.html Fam > /usr/bin/qemu-system-x86_64 -name Windows2008R2 -S -machine pc-i440fx-2.1= ,accel=3Dkvm,usb=3Doff -m 4096 -realtime mlock=3Doff -smp 2,sockets=3D1,cor= es=3D2,threads=3D2 -numa node,nodeid=3D0,cpus=3D0,mem=3D4096 -uuid 16e64e7e= -2582-3236-c93b-ab37828325ea -no-user-config -nodefaults -chardev socket,id= =3Dcharmonitor,path=3D/var/lib/libvirt/qemu/Windows2008R2.monitor,server,no= wait -mon chardev=3Dcharmonitor,id=3Dmonitor,mode=3Dcontrol -rtc base=3Dloc= altime -no-shutdown -boot strict=3Don -device piix3-usb-uhci,id=3Dusb,bus= =3Dpci.0,addr=3D0x1.0x2 -device virtio-serial-pci,id=3Dvirtio-serial0,bus= =3Dpci.0,addr=3D0x3 -drive file=3D/dev/virtmachines/win2008r2,if=3Dnone,id= =3Ddrive-virtio-disk0,format=3Draw,cache=3Dnone,aio=3Dnative -device virtio= -blk-pci,scsi=3Doff,bus=3Dpci.0,addr=3D0x4,drive=3Ddrive-virtio-disk0,id=3D= virtio-disk0,bootindex=3D1 -chardev pty,id=3Dcharserial0 -device isa-serial= ,chardev=3Dcharserial0,id=3Dserial0 -chardev socket,id=3Dcharchannel0,path= =3D/var/lib/libvirt/qemu/win2008r2.sock,server,nowait -device virtserialpor= t,bus=3Dvirtio-serial0.0,nr=3D1,chardev=3Dcharchannel0,id=3Dchannel0,name= =3Dorg.qemu.guest_agent.1 -device usb-tablet,id=3Dinput0 -vnc 127.0.0.1:0 -= device cirrus-vga,id=3Dvideo0,bus=3Dpci.0,addr=3D0x2 -cpu qemu64,hv_relaxed= -set device.virtio-disk0.config-wce=3Doff -set device.virtio-disk0.scsi=3D= off -set device.virtio-disk0.x-data-plane=3Don -msg timestamp=3Don > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0x7f79a8bfe700 (LWP 11306)] > 0x00007f79badf323f in virtio_blk_rw_complete (opaque=3D0x7f79bb9606a0, re= t=3D0) at /var/tmp/portage/app-emulation/qemu-2.1.0/work/qemu-2.1.0/hw/bloc= k/virtio-blk.c:99 > 99 bdrv_acct_done(req->dev->bs, &req->acct); > (gdb) thread apply all bt >=20 > Thread 5 (Thread 0x7f79aa753700 (LWP 11302)): > #0 0x00007f79b4a87727 in ioctl () from /lib64/libc.so.6 > #1 0x00007f79bade24d9 in kvm_vcpu_ioctl (cpu=3Dcpu@entry=3D0x7f79bba17eb= 0, type=3Dtype@entry=3D44672) at /var/tmp/portage/app-emulation/qemu-2.1.0/= work/qemu-2.1.0/kvm-all.c:1845 > #2 0x00007f79bade2615 in kvm_cpu_exec (cpu=3Dcpu@entry=3D0x7f79bba17eb0)= at /var/tmp/portage/app-emulation/qemu-2.1.0/work/qemu-2.1.0/kvm-all.c:1714 > #3 0x00007f79badcdd2c in qemu_kvm_cpu_thread_fn (arg=3D0x7f79bba17eb0) a= t /var/tmp/portage/app-emulation/qemu-2.1.0/work/qemu-2.1.0/cpus.c:874 > #4 0x00007f79b7589f3a in start_thread () from /lib64/libpthread.so.0 > #5 0x00007f79b4a8fc3d in clone () from /lib64/libc.so.6 >=20 > Thread 4 (Thread 0x7f79a9f52700 (LWP 11303)): > #0 0x00007f79b4a87727 in ioctl () from /lib64/libc.so.6 > #1 0x00007f79bade24d9 in kvm_vcpu_ioctl (cpu=3Dcpu@entry=3D0x7f79bba5376= 0, type=3Dtype@entry=3D44672) at /var/tmp/portage/app-emulation/qemu-2.1.0/= work/qemu-2.1.0/kvm-all.c:1845 > #2 0x00007f79bade2615 in kvm_cpu_exec (cpu=3Dcpu@entry=3D0x7f79bba53760)= at /var/tmp/portage/app-emulation/qemu-2.1.0/work/qemu-2.1.0/kvm-all.c:1714 > #3 0x00007f79badcdd2c in qemu_kvm_cpu_thread_fn (arg=3D0x7f79bba53760) a= t /var/tmp/portage/app-emulation/qemu-2.1.0/work/qemu-2.1.0/cpus.c:874 > #4 0x00007f79b7589f3a in start_thread () from /lib64/libpthread.so.0 > #5 0x00007f79b4a8fc3d in clone () from /lib64/libc.so.6 >=20 > Thread 3 (Thread 0x7f79a8bfe700 (LWP 11306)): > #0 0x00007f79badf323f in virtio_blk_rw_complete (opaque=3D0x7f79bb9606a0= , ret=3D0) at /var/tmp/portage/app-emulation/qemu-2.1.0/work/qemu-2.1.0/hw/= block/virtio-blk.c:99 > #1 0x00007f79bb029a62 in bdrv_co_em_bh (opaque=3D0x7f789400dc30) at /var= /tmp/portage/app-emulation/qemu-2.1.0/work/qemu-2.1.0/block.c:4666 > #2 0x00007f79bb021597 in aio_bh_poll (ctx=3Dctx@entry=3D0x7f79bba37e90) = at /var/tmp/portage/app-emulation/qemu-2.1.0/work/qemu-2.1.0/async.c:81 > #3 0x00007f79bb032d05 in aio_poll (ctx=3D0x7f79bba37e90, blocking=3Dbloc= king@entry=3Dtrue) at /var/tmp/portage/app-emulation/qemu-2.1.0/work/qemu-2= =2E1.0/aio-posix.c:188 > #4 0x00007f79baea67b7 in iothread_run (opaque=3D0x7f79bbc18728) at /var/= tmp/portage/app-emulation/qemu-2.1.0/work/qemu-2.1.0/iothread.c:41 > #5 0x00007f79b7589f3a in start_thread () from /lib64/libpthread.so.0 > #6 0x00007f79b4a8fc3d in clone () from /lib64/libc.so.6 >=20 > Thread 2 (Thread 0x7f789b7ff700 (LWP 11307)): > #0 0x00007f79b758dd0c in pthread_cond_wait () from /lib64/libpthread.so.0 > #1 0x00007f79bb07fcb9 in qemu_cond_wait (cond=3Dcond@entry=3D0x7f79bbc17= e20, mutex=3Dmutex@entry=3D0x7f79bbc17e50) at /var/tmp/portage/app-emulatio= n/qemu-2.1.0/work/qemu-2.1.0/util/qemu-thread-posix.c:135 > #2 0x00007f79bb01c95b in vnc_worker_thread_loop (queue=3Dqueue@entry=3D0= x7f79bbc17e20) at /var/tmp/portage/app-emulation/qemu-2.1.0/work/qemu-2.1.0= /ui/vnc-jobs.c:222 > #3 0x00007f79bb01cd30 in vnc_worker_thread (arg=3D0x7f79bbc17e20) at /va= r/tmp/portage/app-emulation/qemu-2.1.0/work/qemu-2.1.0/ui/vnc-jobs.c:323 > #4 0x00007f79b7589f3a in start_thread () from /lib64/libpthread.so.0 > #5 0x00007f79b4a8fc3d in clone () from /lib64/libc.so.6 >=20 > Thread 1 (Thread 0x7f79bac87980 (LWP 11301)): > #0 0x00007f79b4a86116 in ppoll () from /lib64/libc.so.6 > #1 0x00007f79bb031b19 in ppoll (__ss=3D0x0, __timeout=3D0x7fffa40e26e0, = __nfds=3D, __fds=3D) at /usr/include/bits/pol= l2.h:77 > #2 qemu_poll_ns (fds=3D, nfds=3D, timeout= =3Dtimeout@entry=3D510000000) at /var/tmp/portage/app-emulation/qemu-2.1.0/= work/qemu-2.1.0/qemu-timer.c:319 > #3 0x00007f79bb030f04 in os_host_main_loop_wait (timeout=3D510000000) at= /var/tmp/portage/app-emulation/qemu-2.1.0/work/qemu-2.1.0/main-loop.c:229 > #4 main_loop_wait (nonblocking=3D) at /var/tmp/portage/ap= p-emulation/qemu-2.1.0/work/qemu-2.1.0/main-loop.c:484 > #5 0x00007f79bad9eb9d in main_loop () at /var/tmp/portage/app-emulation/= qemu-2.1.0/work/qemu-2.1.0/vl.c:2010 > #6 main (argc=3D, argv=3D, envp=3D) at /var/tmp/portage/app-emulation/qemu-2.1.0/work/qemu-2.1.0/vl.c:= 4530