Received: from eggs.gnu.org ([140.186.70.92]:47941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeiVi-0001WS-Qi for qemu-devel@nongnu.org; Thu, 07 Jul 2011 02:56:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QeiVe-0001br-QN for qemu-devel@nongnu.org; Thu, 07 Jul 2011 02:56:30 -0400 Received: from adelie.canonical.com ([91.189.90.139]:50833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QeiVe-0001bc-9Q for qemu-devel@nongnu.org; Thu, 07 Jul 2011 02:56:26 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QeiVb-0006QK-1R for ; Thu, 07 Jul 2011 06:56:23 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 2D3722EA0A7 for ; Thu, 7 Jul 2011 06:56:13 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 07 Jul 2011 06:42:52 -0000 From: Pierce Liu <591666@bugs.launchpad.net> Sender: bounces@canonical.com References: <20100609102809.3946.74762.malonedeb@wampee.canonical.com> Message-Id: <20110707064252.14267.21008.malone@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 591666] Re: broken "pci_add auto storage" Reply-To: Bug 591666 <591666@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org If configure guest kernel correctly, it seems that virtio for block is OK! Could you help or send me your configure file to have a second check Thanks =3D=3D=3D=3D=3D=3D=3D=3D version info =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D QEMU 0.14.50 monitor = host kernel: 2.6.39 = guest kernel: 2.6.32 = =3D=3D=3D=3D=3D=3D=3D=3D config file for kernel info =3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D See attachment =3D=3D=3D=3D=3D=3D=3D=3D=3DDoing on qemu monitor =3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D QEMU 0.14.50 monitor - type 'help' for more information (qemu) pci_add auto storage file=3D/dev/ram0,if=3Dvirtio OK domain 0, bus 0, slot 3, function 0 =3D=3D=3D=3D=3D=3D=3D=3D=3DDoing on guest console =3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D 1. ---see the disk on guest root@qemux86-64:~# dmesg | grep 'vda' [ 245.440217] vda: unknown partition table root@qemux86-64:~# fdisk -l Disk /dev/sda: 2147 MB, 2147483648 bytes 255 heads, 63 sectors/track, 261 cylinders Units =3D cylinders of 16065 * 512 =3D 8225280 bytes Disk /dev/sda doesn't contain a valid partition table Disk /dev/vda: 16 MB, 16777216 bytes 16 heads, 63 sectors/track, 32 cylinders Units =3D cylinders of 1008 * 512 =3D 516096 bytes Disk /dev/vda doesn't contain a valid partition table 2. --- write content to virtio disk root@qemux86-64:~# echo 'helloHypervisor' > /dev/vda = root@qemux86-64:~# head /dev/vda = helloHypervisor =3D=3D=3D=3D=3D=3D=3D=3D=3DDoing on host console =3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D [root@oc8440477808 linux-2.6.39]# head /dev/ram0 helloHypervisor =3D=3D=3D=3D=3D=3D=3D=3D=3D conclusion =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D Host get the data which is passed through virtio device on guest. The data = is "helloHpervisor" So, the kernel version 2.6.32 can support virtio block device with correct config, especially the following must be choosen: CONFIG_VIRTIO=3Dy CONFIG_VIRTIO_RING=3Dy CONFIG_VIRTIO_PCI=3Dy CONFIG_VIRTIO_BALLOON=3Dy CONFIG_VIRTIO_BLK=3Dy ** Attachment added: "guest kernel configure file" https://bugs.launchpad.net/qemu/+bug/591666/+attachment/2194876/+files/g= uest.config -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/591666 Title: broken "pci_add auto storage" Status in QEMU: New Bug description: Doing: (qemu) pci_add auto storage file=3D/dev/ram0,if=3Dvirtio Results in: OK domain 0, bus 0, slot 5, function 0 However no device is actually added to the guest. QEMU: Latest git code (June 9) from git://git.kernel.org/pub/scm/virt/kvm= /qemu-kvm.git (seems to be broken from 0.12.1.2) KVM: Compiled from git://git.kernel.org/pub/scm/virt/kvm/kvm-kmod.git checked out (refs/remotes/origin/stable-2.6.32) Both guest and host are Ubuntu 9.10 with 2.6.32 kernel. Guest kernel has ACPI enabled (specifically, the PCI slot detection drive= r) Guest executed with the following parameters: -boot c -drive file=3D/home/eranr/kvm_images/ubuntu-9.10-2.6.32-perf.img= ,if=3Dide,boot=3Don -m 4096 -net nic,model=3Dvirtio -net tap,ifname=3Dqtap0= ,script=3Dno -vnc :0 -smp 1,cores=3D1,threads=3D0 -monitor tcp:localhost:60= 01,server,nowait To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/591666/+subscriptions