Skip to contentSkip to conversation

qemu 2.4rc2 : iothread hanging vm (2.4rc1 works fine)

Qemu-devel Alexandre DERUMIER 2 participants 4 messages Jul 29, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

since qemu 2.4rc2, when I'm using iothreads, the vm is hanging, qmp queries are not working, vnc not working. (qemu process don't crash).

qemu 2.4 rc1 works fine. (don't have bisect it yet)

qemu command line:

qemu -chardev socket,id=qmp,path=/var/run/qemu-server/150.qmp,server,nowait -mon chardev=qmp,mode=control -vnc unix:/var/run/qemu-server/150.vnc,x509,password -pidfile /var/run/qemu-server/150.pid -daemonize -smbios type=1,manufacturer=dell,version=1,product=3,uuid=f0686bfb-50b8-4d31-a4cb-b1cf60eeb648 -name debianok -smp 2,sockets=2,cores=1,maxcpus=2 -nodefaults -boot menu=on,strict=on,reboot-timeout=1000 -vga cirrus -cpu kvm64,+lahf_lm,+x2apic,+sep,+kvm_pv_unhalt,+kvm_pv_eoi,enforce -m 8192 -k fr -object iothread,id=iothread-virtio0 -device pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f -device pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e -device piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2 -device usb-tablet,id=tablet,bus=uhci.0,port=1 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 -iscsi initiator-name=iqn.1993-08.org.debian.01.24b0d01a62a3 -drive file=/var/lib/vz/images/150/vm-150-disk-1.raw,if=none,id=drive-virtio0,cache=none,format=raw,aio=native,detect-zeroes=on -device virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,iothread=iothread-virtio0,bootindex=100

Regards,

Alexandre

#1 lore raw

seem to come from this commit:

http://git.qemu.org/?p=qemu.git;a=commit;h=eabc977973103527bbb8fed69c91cfaa6691f8ab
"AioContext: fix broken ctx->dispatching optimization"

----- Mail original -----
De: "aderumier" <[email protected]>
À: "qemu-devel" <[email protected]>
Envoyé: Mercredi 29 Juillet 2015 06:15:48
Objet: [Qemu-devel] qemu 2.4rc2 : iothread hanging vm (2.4rc1 works fine)

Hi,

since qemu 2.4rc2, when I'm using iothreads, the vm is hanging, qmp queries are not working, vnc not working. (qemu process don't crash).

qemu 2.4 rc1 works fine. (don't have bisect it yet)

qemu command line:

qemu -chardev socket,id=qmp,path=/var/run/qemu-server/150.qmp,server,nowait -mon chardev=qmp,mode=control -vnc unix:/var/run/qemu-server/150.vnc,x509,password -pidfile /var/run/qemu-server/150.pid -daemonize -smbios type=1,manufacturer=dell,version=1,product=3,uuid=f0686bfb-50b8-4d31-a4cb-b1cf60eeb648 -name debianok -smp 2,sockets=2,cores=1,maxcpus=2 -nodefaults -boot menu=on,strict=on,reboot-timeout=1000 -vga cirrus -cpu kvm64,+lahf_lm,+x2apic,+sep,+kvm_pv_unhalt,+kvm_pv_eoi,enforce -m 8192 -k fr -object iothread,id=iothread-virtio0 -device pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f -device pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e -device piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2 -device usb-tablet,id=tablet,bus=uhci.0,port=1 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 -iscsi initiator-name=iqn.1993-08.org.debian.01.24b0d01a62a3 -drive file=/var/lib/vz/images/150/vm-150-disk-1.raw,if=none,id=drive-virtio0,cache=none,format=raw,aio=native,detect-zeroes=on -device virtio-blk-pci,drive=drive-virtio0,id=virtio0,bus=pci.0,addr=0xa,iothread=iothread-virtio0,bootindex=100

Regards,

Alexandre

#3 lore raw
Quoted 1 line
Quoted 1 line

Stefan has a set of patches that fix it.

Yes, I just see it.

I'll them today.

Thanks !

----- Mail original -----
De: "pbonzini" <[email protected]>
À: "aderumier" <[email protected]>, "qemu-devel" <[email protected]> Envoyé: Mercredi 29 Juillet 2015 09:39:03
Objet: Re: qemu 2.4rc2 : iothread hanging vm (2.4rc1 works fine)

Quoted 4 lines · Alexandre DERUMIER

seem to come from this commit:

http://git.qemu.org/?p=qemu.git;a=commit;h=eabc977973103527bbb8fed69c91cfaa6691f8ab
"AioContext: fix broken ctx->dispatching optimization"

Stefan has a set of patches that fix it.

Paolo