From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Besser Subject: kvm segmentation fault on pci-hotplug add/del/re-add Date: Mon, 16 Nov 2009 15:23:31 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit To: kvm@vger.kernel.org Return-path: Received: from lo.gmane.org ([80.91.229.12]:41938 "EHLO lo.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752939AbZKPOZT (ORCPT ); Mon, 16 Nov 2009 09:25:19 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NA2Vn-0007ib-Ho for kvm@vger.kernel.org; Mon, 16 Nov 2009 15:24:59 +0100 Received: from nat.rz.uni-karlsruhe.de ([129.13.72.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Nov 2009 15:24:59 +0100 Received: from thomas.besser by nat.rz.uni-karlsruhe.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 16 Nov 2009 15:24:59 +0100 Sender: kvm-owner@vger.kernel.org List-ID: Hi, running kvm 0.11.0 from http://www.corpit.ru/debian/tls/ on debian lenny host, guest also debian lenny (with virtio and pci_hotplug, 2.6.30) Starting the guest with: /usr/bin/kvm -name test -vnc :5 -net nic,vlan=0,model=virtio,macaddr=00:08:15:00:09:95 -net tap,vlan=0,ifname=tap05,script=no -m 256 -drive file=/vsimages/test/test.raw,if=virtio,boot=on -monitor tcp:127.0.0.1:33333,server,nowait -vga std -k de -tdf 1. Adding hdd On qemu-console: pci_add auto storage file=test2.raw,if=virtio OK domain 0, bus 0, slot 6, function 0 In guest: pci 0000:00:06.0: reg 10 io port: [0x00-0x3ff] pci 0000:00:02.0: BAR 6: bogus alignment [0x0-0x0] flags 0x2 decode_hpp: Could not get hotplug parameters. Use defaults virtio-pci 0000:00:06.0: enabling device (0000 -> 0001) ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11 virtio-pci 0000:00:06.0: PCI INT A -> Link[LNKB] -> GSI 11 (level, high) -> IRQ 11 vdb: vdb1 2. Deleting hdd On qemu-console: pci_del 0:6 In guest: virtio-pci 0000:00:06.0: PCI INT A disabled 3. Re-adding the same hdd fails qemu-console: pci_add auto storage file=test2.raw,if=virtio host: Segmentation fault Running with gdb gives: dbg: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fc15550a6e0 (LWP 9085)] virtio_blk_init (dev=0xcb2010) at /build/kvm/qemu-kvm-0.11.0/build/hw/virtio-blk.c:439 439 /build/kvm/qemu-kvm-0.11.0/build/hw/virtio-blk.c: No such file or directory. in /build/kvm/qemu-kvm-0.11.0/build/hw/virtio-blk.c Is this problem known? Is pci-hotplug a qemu or kvm feature? Where to file a bug? Regards Thomas