From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4UAi-0003OG-5T for qemu-devel@nongnu.org; Fri, 16 Sep 2011 04:53:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R4UAg-0001zn-UK for qemu-devel@nongnu.org; Fri, 16 Sep 2011 04:53:20 -0400 Received: from e28smtp09.in.ibm.com ([122.248.162.9]:45736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R4UAg-0001zP-8U for qemu-devel@nongnu.org; Fri, 16 Sep 2011 04:53:18 -0400 Received: from /spool/local by in.ibm.com with XMail ESMTP for from ; Fri, 16 Sep 2011 14:23:14 +0530 Received: from d28av05.in.ibm.com (d28av05.in.ibm.com [9.184.220.67]) by d28relay03.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8G8r7I24260028 for ; Fri, 16 Sep 2011 14:23:07 +0530 Received: from d28av05.in.ibm.com (loopback [127.0.0.1]) by d28av05.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p8G8r6QV015085 for ; Fri, 16 Sep 2011 18:53:06 +1000 Message-ID: <4E730E52.3070302@vnet.linux.ibm.com> Date: Fri, 16 Sep 2011 16:52:34 +0800 From: hkran MIME-Version: 1.0 References: <20110730230157.13425.3564.malonedeb@chaenomeles.canonical.com> <20110914194209.31176.83747.malone@soybean.canonical.com> <201109141630.11577.rickv@hobi.com> <201109151123.53824.rickv@hobi.com> <201109151437.36302.rickv@hobi.com> In-Reply-To: <201109151437.36302.rickv@hobi.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Bug 818673] Re: virtio: trying to map MMIO memory List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bug 818673 <818673@bugs.launchpad.net> Cc: qemu-devel@nongnu.org On 09/16/2011 03:37 AM, Rick Vernam wrote: > On Thursday 15 September 2011 11:23:53 Rick Vernam wrote: >> On Wednesday 14 September 2011 16:30:11 Rick Vernam wrote: >>> On Wednesday 14 September 2011 14:42:09 vrozenfe wrote: >>>> Thank you, Rick. >>>> >>>> Could you help me to narrow this problem down? >>> Absolutely. >>> >>>> As I see, you have three virtio drivers installed on your system - >>>> block, net, and virtio serial. Technically, anyone of them can create >>>> "trying to map MMIO memory" problem. The best way to find a buggy >>>> driver ( or drivers) will be to isolate one from the other. If you >>>> can, please try running only one virtio device every time to see which >>>> driver sends incorrect scatter/gather list element to QEMU. >>> Sure, no problem. I'll have that in the next few days. >> I started qemu without any of the virt-serial stuff, specfically: >> qemu-system-x86_64 -cpu host -enable-kvm -pidfile >> /home/rick/qemu/hds/wxp.pid - drive >> file=/home/rick/qemu/hds/wxp.raw,if=virtio,aio=native -m 1536 -name WinXP >> -net nic,model=virtio -net user -localtime -usb -vga qxl -spice >> port=1234,disable-ticketing -monitor stdio >> >> It's been running for around 2 hours and no crash yet. > So without virt-serial, the machine ran until I rebooted the guest OS, then > crashed with the same error message. Without virt-serial it seemed to be > stable so long as it was just left running. > > Now I'll run it without virt-net, and let you know how that goes. > >> Thanks, >> -Rick >> >>>> Another question. You said, the problem happens after every second or >>>> third restart. Do you shutdown your VM, or just restart it? >>> Have to shut down the VM guest so that the qemu process exits. >>> >>>> How does it work >>>> after going through several hibernate/resume, and/or suspend/resume >>>> cycles. >>> I often will suspend with or without pausing qemu (via monitor commands >>> 'stop' and 'cont'). I have never experienced any problem with the qemu >>> process that was running prior to the suspend. >>> >>>> Best regards, >>>> Vadim. >>> Thanks, >>> -Rik I have tried many times with many restarts or shutdown-and-boot xp guest but failed to meet the crashing. (I am using the virtio drivers referenced in the earlier mail list.) my command: /home/huikai/qemu15/bin/qemu --enable-kvm -m 768 -drive file=/home/huikai/winxp_dev.img,if=virtio -net nic,model=virtio -net user -usb -usbdevice tablet -localtime -vga qxl -device virtio-serial -chardev spicevmc,name=vdagent,id=vdagent -device virtserialport,chardev=vdagent,name=spice0 -spice port=1234,disable-ticketing -monitor telnet:localhost:12341,server,nowait