Received: from eggs.gnu.org ([2001:4830:134:3::10]:45939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bK7XM-0000mO-Vy for qemu-devel@nongnu.org; Mon, 04 Jul 2016 13:20:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bK7XG-0008Ji-UJ for qemu-devel@nongnu.org; Mon, 04 Jul 2016 13:19:59 -0400 Received: from mx6-phx2.redhat.com ([209.132.183.39]:57546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bK7XG-0008Jd-Ls for qemu-devel@nongnu.org; Mon, 04 Jul 2016 13:19:54 -0400 Date: Mon, 4 Jul 2016 13:19:53 -0400 (EDT) From: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Message-ID: <1539298406.2095976.1467652793714.JavaMail.zimbra@redhat.com> In-Reply-To: <0e0b3d90-24c2-519f-7b08-2b1174b35dc9@redhat.com> References: <20160704153823.16879-1-marcandre.lureau@redhat.com> <20160704163139.GM3763@redhat.com> <20160704170715.GO3763@redhat.com> <0e0b3d90-24c2-519f-7b08-2b1174b35dc9@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] char: do not use atexit cleanup handler List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: "Daniel P. Berrange" , marcandre lureau , qemu-devel@nongnu.org, Gerd Hoffmann , Frediano Ziglio Hi ----- Original Message ----- >=20 >=20 > On 04/07/2016 19:07, Daniel P. Berrange wrote: > > > At this point you have stopped all CPUs and block devices. There is = not > > > much else that is going on in QEMU at all, at this point. The soluti= on > > > would be to stop those threads. > > > > What about graphics threads ? In particular I'd be thinking of spice > > which uses threads and chardevs. >=20 > I think it should be quiesced after pause_all_vcpus returns. Marc-Andr= =C3=A9 > should know, but it's better to check with Gerd. In theory, spice_server_vm_stop() should be called at this point, and all c= hardev in spice are stopped too there, as well as the qxl worker processing= thread (although the thread is not joined here neither..). > (FWIW, it's not so easy to shut down the threads because for example > some threads might belong to non-hotunpluggable devices). ok