From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwpqK-00038Q-6s for qemu-devel@nongnu.org; Fri, 05 Dec 2014 05:10:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XwpqE-0002tx-09 for qemu-devel@nongnu.org; Fri, 05 Dec 2014 05:10:32 -0500 Received: from [59.151.112.132] (port=56252 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XwpqD-0002fe-H6 for qemu-devel@nongnu.org; Fri, 05 Dec 2014 05:10:25 -0500 Message-ID: <54818365.5030900@cn.fujitsu.com> Date: Fri, 5 Dec 2014 18:05:25 +0800 From: Li Guang MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] question: guest will hang when call system function in migration thread. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?GB2312?B?s8LBug==?= Cc: qemu list Hi, which version you tested? do you let vm continue to run after migration? can you provide more info? can't reproduce it on latest version. Thanks! On 12/04/2014 11:14 PM, =B3=C2=C1=BA wrote: > Hi all > > guest will hang when call system function in migration thread. The cpu us= age of vcpu thread is 100%. > > the code like this: > > static void *migration_thread(void *opaque) > { > MigrationState *s =3D opaque; > int64_t initial_time =3D qemu_clock_get_ms(QEMU_CLOCK_REALTIME); > int64_t setup_start =3D qemu_clock_get_ms(QEMU_CLOCK_HOST); > int64_t initial_bytes =3D 0; > int64_t max_size =3D 0; > int64_t start_time =3D initial_time; > bool old_vm_running =3D false; > > //test code > system("df -h=A1=B1); =20 > > qemu_savevm_state_begin(s->file, &s->params); > =A1=AD > > Is it anything wrong? or it is not allow to call system in migration thr= ead? > =20 >