Received: from eggs.gnu.org ([140.186.70.92]:40513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbxEm-0002VA-P7 for qemu-devel@nongnu.org; Sat, 17 Dec 2011 11:35:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RbxEk-00072G-UO for qemu-devel@nongnu.org; Sat, 17 Dec 2011 11:35:52 -0500 Received: from mx1.redhat.com ([209.132.183.28]:31467) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RbxEk-00071z-LR for qemu-devel@nongnu.org; Sat, 17 Dec 2011 11:35:50 -0500 Date: Sat, 17 Dec 2011 16:35:45 +0000 From: "Richard W.M. Jones" Message-ID: <20111217163545.GC23695@amd.home.annexia.org> References: <20111216221956.GA23695@amd.home.annexia.org> <20111217000704.GB23695@amd.home.annexia.org> <4EEBF3EA.3040401@codemonkey.ws> <20111217082958.GJ2520@amd.home.annexia.org> <4EECB1B0.7050404@codemonkey.ws> <4EECB3C5.6060608@codemonkey.ws> <20111217152514.GM2520@amd.home.annexia.org> <4EECC227.4060904@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4EECC227.4060904@codemonkey.ws> Subject: Re: [Qemu-devel] insmod virtio-blk is broken in qemu 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: "seabios@seabios.org" , qemu-devel@nongnu.org, Max Filippov , Gerd Hoffmann , Amit Shah , Avi Kivity On Sat, Dec 17, 2011 at 10:24:07AM -0600, Anthony Liguori wrote: > On 12/17/2011 09:25 AM, Richard W.M. Jones wrote: > >On Sat, Dec 17, 2011 at 09:22:45AM -0600, Anthony Liguori wrote: > >>I've even further narrowed it down to the presents or lack of '-vga > >>cirrus'. If you add '-vga cirrus' to the above command line, the > >>guest will boot successfully. > > > >Confirmed: Adding -vga cirrus to the command line cures it too. > > > >That's a strange one :-) > > vga sticks out a bit because it's one of the few places where we > treat device memory as ram as a performance optimization. > > The only time vga has been touched in between v0.15 and v1.0 was > during the introduction of the memory API. > > It's this commit: > > commit d67c3f2cd92aed2247bfa8a9da61a902b7b2ff09 > Author: Gerd Hoffmann > Date: Wed Aug 10 17:34:13 2011 +0200 > > seabios: update to master > > commit 8e301472e324b6d6496d8b4ffc66863e99d7a505 > > user visible changes in seabios: > * ahci is enabled by default (and thus in this build). > * bootorder support for ahci. > * two-pass pci allocator (orders bars by size for better packing). > > Signed-off-by: Gerd Hoffmann > > :040000 040000 76eb0c81b76563b55cb2bb5c484ccd48b8cfcded > 5ec0d65d3a763a5566fe1f4c86269cad6d671020 M pc-bios > :040000 040000 a5a7ea6e297c1e7490b0a2c28a06ce56e5be9449 > 78adb664d3ea82f1a4dd5ec239887ac5b0168a7f M roms > > It can be reproduced by using virtio and -vga none with a number of > PCI devices. The line below is what I used to bisect and reproduce > 100% of the time. It's a 64-bit Fedora 15 guest. > > $ qemu-system-x86_64 -drive > file=/home/anthony/images/fedora.img,if=none,snapshot=on,id=hd0 > -device virtio-balloon-pci,addr=03.0 -device > virtio-blk-pci,addr=04.0,drive=hd0 -kernel > ~/vmlinuz-2.6.38.6-26.rc1.fc15.x86_64 -initrd > ~/initramfs-2.6.38.6-26.rc1.fc15.x86_64.img -append > "root=/dev/mapper/VolGroup-lv_root rd_LVM_LV=VolGroup/lv_root > rd_LVM_LV=VolGroup/lv_swap ro console=ttyS0 selinux=0" -nographic > -nodefconfig -m 1G -no-reboot -no-hpet -device virtio-serial > -chardev socket,path=/tmp/foo.sock,id=channel0,server,nowait -device > virtserialport,chardev=channel0,name=org.libguestfs.channel.0 > -nodefaults -serial stdio -enable-kvm > > My guess it that it has something to do with the changes to the PCI > allocator. I've confirmed reverting this commit fixes the problem. Confirmed: reverting this patch fixes it for me. Note that we suspected this patch before, way back in September: https://lists.gnu.org/archive/html/qemu-devel/2011-09/msg03830.html Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/