Skip to contentSkip to conversation

kvm_virtio_pci_irqfd_release: Assertion `ret == 0' failed

Qemu-devel Luiz Capitulino 2 participants 3 messages Jan 17, 2013

lore
Share & tools
lore
#0 lore raw

Hi Michael,

To trigger this I just:

1. Boot the VM, command-line:

# ./qemu -drive file=disks/test.img,if=virtio,cache=none,aio=native \
         -enable-kvm -m 1G -monitor stdio \
         -netdev type=tap,vhost=on,id=guest0,script=qemu-ifup-switch \
         -device virtio-net-pci,netdev=guest0 -cpu host

2. Once the VM is fully booted:

QEMU 1.3.50 monitor - type 'help' for more information
(qemu) q
qemu-qmp: /home/lcapitulino/work/src/qmp-unstable/hw/virtio-pci.c:535: kvm_virtio_pci_irqfd_release: Assertion `ret == 0' failed. ~/work/virt/

Seems to be related with your latest pull request (commit 8e9a8681).

Backtrace:

(gdb) bt

#0  0x00007fa3dee67285 in raise () from /lib64/libc.so.6
#1  0x00007fa3dee68b9b in abort () from /lib64/libc.so.6
#2  0x00007fa3dee5fe9e in __assert_fail_base () from /lib64/libc.so.6
#3  0x00007fa3dee5ff42 in __assert_fail () from /lib64/libc.so.6
#4  0x00007fa3e1522260 in kvm_virtio_pci_irqfd_release (proxy=0x7fa3e41a9440, queue_no=2, vector=1)

at /home/lcapitulino/work/src/qmp-unstable/hw/virtio-pci.c:535
#5 0x00007fa3e15224da in kvm_virtio_pci_vector_release (proxy=0x7fa3e41a9440, nvqs=2)
at /home/lcapitulino/work/src/qmp-unstable/hw/virtio-pci.c:605
#6 0x00007fa3e1522c87 in virtio_pci_set_guest_notifiers (d=0x7fa3e41a9440, nvqs=2, assign=false)
at /home/lcapitulino/work/src/qmp-unstable/hw/virtio-pci.c:785
#7 0x00007fa3e1613c15 in vhost_dev_stop (hdev=0x7fa3e3a89720, vdev=0x7fa3e4444810)
at /home/lcapitulino/work/src/qmp-unstable/hw/vhost.c:1027
#8 0x00007fa3e16143ca in vhost_net_stop (net=0x7fa3e3a89720, dev=0x7fa3e4444810)
at /home/lcapitulino/work/src/qmp-unstable/hw/vhost_net.c:194
#9 0x00007fa3e1617714 in virtio_net_vhost_status (n=0x7fa3e4444810, status=7 '\a')
at /home/lcapitulino/work/src/qmp-unstable/hw/virtio-net.c:137
#10 0x00007fa3e161778b in virtio_net_set_status (vdev=0x7fa3e4444810, status=7 '\a')
at /home/lcapitulino/work/src/qmp-unstable/hw/virtio-net.c:146
#11 0x00007fa3e161792b in virtio_net_set_link_status (nc=0x7fa3e41a45c0) at /home/lcapitulino/work/src/qmp-unstable/hw/virtio-net.c:181 #12 0x00007fa3e1532d9c in qemu_del_net_client (nc=0x7fa3e3a78130) at /home/lcapitulino/work/src/qmp-unstable/net/net.c:271 #13 0x00007fa3e1534681 in net_cleanup () at /home/lcapitulino/work/src/qmp-unstable/net/net.c:919
#14 0x00007fa3dee6a931 in __run_exit_handlers () from /lib64/libc.so.6
#15 0x00007fa3dee6a9b5 in exit () from /lib64/libc.so.6
#16 0x00007fa3dee526a4 in __libc_start_main () from /lib64/libc.so.6
#17 0x00007fa3e13acbc9 in _start ()
(gdb)

#1 lore raw
Quoted 3 lines · Luiz Capitulino

Hi Michael,

To trigger this I just:

Yes you need
virtio-pci: fix irqfd cleanup argument order

Signature · 1 line
MST
#2 lore raw
Quoted 7 lines · On Thu, 17 Jan 2013 17:50:09 +0200 "Michael S. Tsirkin" <[email protected]> wrote:
Quoted 3 lines · Luiz Capitulino

Hi Michael,

To trigger this I just:

Yes you need
virtio-pci: fix irqfd cleanup argument order

Oh, ok, so it's already known. I assume the fix is in flight to master.