From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya2Sz-0003ci-J6 for qemu-devel@nongnu.org; Mon, 23 Mar 2015 09:32:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ya2Sv-0000eb-Iq for qemu-devel@nongnu.org; Mon, 23 Mar 2015 09:32:29 -0400 Received: from mail-wi0-x22f.google.com ([2a00:1450:400c:c05::22f]:33457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ya2Sv-0000eW-Bo for qemu-devel@nongnu.org; Mon, 23 Mar 2015 09:32:25 -0400 Received: by wixw10 with SMTP id w10so34906837wix.0 for ; Mon, 23 Mar 2015 06:32:24 -0700 (PDT) Date: Mon, 23 Mar 2015 13:32:21 +0000 From: Stefan Hajnoczi Message-ID: <20150323133221.GH9268@stefanha-thinkpad.redhat.com> References: <20150321074437.16517.74688.malonedeb@gac.canonical.com> <20150321074437.16517.74688.malonedeb@gac.canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qM81t570OJUP5TU/" Content-Disposition: inline In-Reply-To: <20150321074437.16517.74688.malonedeb@gac.canonical.com> 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: Bug 1434779 <1434779@bugs.launchpad.net> Cc: qemu-devel@nongnu.org --qM81t570OJUP5TU/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 (l= inux kernel:3.10.0) as a host of a VM. 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. I have CCed Jeff Cody, who maintains drive-mirror. > Using drive_mirror to do live-migration on the same host for different d= isks > Local disk: /sf/data/local/ > Shared disk(iscsi): /sf/other/local/ --- the disk is busy, the IO rat= e 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,i= d=3Ddrive-ide0,cache=3Dnone,aio=3Dnative -device ide-hd,bus=3Dide.0,unit=3D= 0,drive=3Ddrive-ide0,id=3Dide0,bootindex=3D100=20 >=20 > Step 1: > Start migration: Drive_mirror -f drive-ide0 /sf/other/local/test.qcow2 >=20 > Step 2: > When detect the migration has completed, then send cmd: block_job_complet= e -f drive-ide0 >=20 > Step 3: > send cmd: info status=20 > What surprised me is that the qemu monitor reports can=E2=80=99t be conne= cted. >=20 > 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 forwar= d to getting help from you . > The stack capture snapshot: --qM81t570OJUP5TU/ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVEBXlAAoJEJykq7OBq3PI/RAIAKaXgrUS5eCR7SSP9F8nTlZe DHU1+L5UP3+QCBjZYCkoT+ht8499bcym2Sl7zIKb2fIUJu2RJm2VqcZ5GIBW/KIu DCLZd/SmjIZXWlxJChIFXrzK8MxRYwzEQaLrmN6m8DAZkQNzLatgOveKy+gizqPq rgRuRezHpN6hwwD9laOlrXOSlbx6Z5YDm4lSVlm8a/m2HUuINYCIz8iNnpXi4qb6 cH3v+uWB+qLvCrBgHgzZz95F1zBLHCS3IUXhLfLgl4O5wfbE6ucgZm+bYsvAyVJz i3hSidVv38azetrG5S66/8cWTbdNkazFfqGQQnF7qWJTx03TPuEzaFUwmQ5oFKY= =JCe/ -----END PGP SIGNATURE----- --qM81t570OJUP5TU/--