From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59875) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YctxK-0000Dv-BY for qemu-devel@nongnu.org; Tue, 31 Mar 2015 07:03:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YctxH-0002Og-59 for qemu-devel@nongnu.org; Tue, 31 Mar 2015 07:03:38 -0400 Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]:36067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YctxG-0002Nw-To for qemu-devel@nongnu.org; Tue, 31 Mar 2015 07:03:35 -0400 Received: by padcy3 with SMTP id cy3so16471039pad.3 for ; Tue, 31 Mar 2015 04:03:33 -0700 (PDT) From: "Halsey Pian" References: <20150321074437.16517.74688.malonedeb@gac.canonical.com> <20150321074437.16517.74688.malonedeb@gac.canonical.com> <20150323133221.GH9268@stefanha-thinkpad.redhat.com> In-Reply-To: <20150323133221.GH9268@stefanha-thinkpad.redhat.com> Date: Tue, 31 Mar 2015 19:03:28 +0800 Message-ID: <010e01d06ba2$542550b0$fc6ff210$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Subject: Re: [Qemu-devel] [Bug 1434779] [NEW] qemu hangs on live-migration with storage(virtual machine: windows Server 2008 with only one disk ) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Stefan Hajnoczi' , 'Bug 1434779' <1434779@bugs.launchpad.net> Cc: qemu-devel@nongnu.org > -----Original Message----- > From: qemu-devel-bounces+halsey.pian=3Dgmail.com@nongnu.org = [mailto:qemu-devel-bounces+halsey.pian=3Dgmail.com@nongnu.org] > On Behalf Of Stefan Hajnoczi > Sent: 2015=E5=B9=B43=E6=9C=8823=E6=97=A5 21:32 > To: Bug 1434779 > Cc: qemu-devel@nongnu.org > Subject: Re: [Qemu-devel] [Bug 1434779] [NEW] qemu hangs on = live-migration with storage(virtual machine: windows Server 2008 > with only one disk ) >=20 > On Sat, Mar 21, 2015 at 07:44:37AM -0000, youyunyehe wrote: > > We are using =E2=80=9CWindows Server 2008=E2=80=9D with = qemu-kvm-2.0.1 (linux kernel:3.10.0) as a host of a VM. >=20 > Please give the exact qemu-kvm package version and Linux distro name. > The code in qemu.git/master is slightly different so maybe the issue = no longer happens, but it would be worth looking at the exact > source code your qemu-kvm is built from. [Halsey] I also recreated this issue today, qemu hangs at bdrv_rw-co() = -> bdrv_prwv_co() -> aio_poll(0 -> qemu_poll_ns() -> ppoll(). I'm just = call bdrv_write to write data to qcow2 file. My qemu version is = qemu-2.2.0. > I have CCed Jeff Cody, who maintains drive-mirror. >=20 > > Using drive_mirror to do live-migration on the same host for > > different disks Local disk: /sf/data/local/ > > Shared disk(iscsi): /sf/other/local/ --- the disk is busy, the = IO rate is about 30MB/s > > qemu-system-x86_64 -k en-us -m 2048 -smp 2 -vnc :3100 -usbdevice > > tablet -boot c -enable-kvm -drive > > = file=3D/sf/data/local/vm-disk-1.qcow2,if=3Dnone,id=3Ddrive-ide0,cache=3Dn= one,a > > io=3Dnative -device > > = ide-hd,bus=3Dide.0,unit=3D0,drive=3Ddrive-ide0,id=3Dide0,bootindex=3D100 > > > > Step 1: > > Start migration: Drive_mirror -f drive-ide0 > > /sf/other/local/test.qcow2 > > > > Step 2: > > When detect the migration has completed, then send cmd: > > block_job_complete -f drive-ide0 > > > > Step 3: > > send cmd: info status > > What surprised me is that the qemu monitor reports can=E2=80=99t be = connected. > > > > Then find bellows: > > The qemu process hangs on the > > mirror_run->bdrv_drain_all->aio_poll->qemu_poll_ns->ppoll (), None > > events were received and poll forever. I don=E2=80=99t know why the = aio can=E2=80=99t be responsed. This case is hardly to be generated but = it really > happens sometimes . I=E2=80=99m looking forward to getting help from = you . > > The stack capture snapshot: