From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TixWt-0000YG-LG for qemu-devel@nongnu.org; Wed, 12 Dec 2012 20:24:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TixWo-0002Gv-VS for qemu-devel@nongnu.org; Wed, 12 Dec 2012 20:24:03 -0500 Received: from usrksweb02.endace.com ([174.143.168.194]:37223) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TixWo-0002Ge-Pt for qemu-devel@nongnu.org; Wed, 12 Dec 2012 20:23:58 -0500 Message-ID: <50C92E21.50307@endace.com> Date: Thu, 13 Dec 2012 14:23:45 +1300 From: Alexey Korolev MIME-Version: 1.0 References: <50BEA7C0.5020602@endace.com> <50BEF818.90002@redhat.com> <50C01A79.6080904@endace.com> <50C04CFD.4080400@redhat.com> <50C136B8.2080001@endace.com> <50C1A9B1.9030109@redhat.com> <50C5436E.1030000@endace.com> <50C58D9A.2040808@redhat.com> In-Reply-To: <50C58D9A.2040808@redhat.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [BUG] QEMU crashes when 64bit BAR is present List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann , "qemu-devel@nongnu.org" , Avi Kivity , "Michael S. Tsirkin" On 10/12/12 20:22, Gerd Hoffmann wrote: > On 12/10/12 03:05, Alexey Korolev wrote: >> Hi, >>>> It is a 64bit guest OS. >>>> I've upgraded to RHEL 5.8 and still have the same problem. >>> My rhel5 is 32bit. >>> >>>> Could you please send me a qemu command line you are running? >>> qemu-default -m 512 -hda /vmdisk/guests/rhel5.img -device >>> ivshmem,size=128M,shm=ivshmem.root >> Could you please set the parameter use64=1 ? > It's the default (except when using -M pc-$old), and according to lspci > the guest sees a 64bit bar. Correct. Just noticed that the default option use64 is 1. >> I guess 64bit OS might also be important. I don't have a 32 bit version at the moment to check whether it fails or not. > both 32bit and 64bit rhel5 installer isos boot just fine for me. Installers are different case - the issue may not occur with installers. It is easiest to reproduce the issue on a given configuration. I think I gave a pretty concise description of our case. To reproduce the problem get: A Centos 5.8 64bit Linux (Centos 5.5 fails in the same way as well) Get the latest qemu checkout (alternatively qemu 1.3.0 and 1.2.0 fail in a very similar way as well) Try running /usr/bin/qemu -enable-kvm -m 4096 -smp 1,sockets=1,cores=1,threads=1 -name Cent5 -nodefconfig -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/Cent5.monitor,server,nowait -mon chardev=charmonitor,id=monitor,mode=readline -rtc base=utc -boot c -drive file=/patch_to_centos_5_8.ing,if=none,id=drive-ide0-0-0,format=raw -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -vnc 127.0.0.1:0 -k en-us -vga std -device ivshmem,size=128M,use64=1,shm,bus=pci.0,multifunction=on,addr=0x5.0x0 -device virtio-balloon-pci,id=balloon0,bus=pci.0,multifunction=on,addr=0x4.0x0 and your guest will either hang or qemu process be terminated with an assertion message.