From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7RcH-0005Ju-0E for qemu-devel@nongnu.org; Tue, 13 Mar 2012 09:18:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7Rbq-0007qQ-DH for qemu-devel@nongnu.org; Tue, 13 Mar 2012 09:18:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54451) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7Rbq-0007pw-5P for qemu-devel@nongnu.org; Tue, 13 Mar 2012 09:17:50 -0400 Message-ID: <4F5F48F9.7090501@redhat.com> Date: Tue, 13 Mar 2012 14:17:45 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: <00c1eea5-ccb2-4b54-89f8-bdbf00fdc8a4@zmail17.collab.prod.int.phx2.redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH/RFC 0/7] Screendump to UNIX socket & in PNG format List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: =?ISO-8859-1?Q?Marc-Andr=E9_Lureau?= , =?ISO-8859-1?Q?Marc-Andr=E9_Lureau?= , =?ISO-8859-1?Q?Marc-Andr=E9_Lureau?= , qemu-devel@nongnu.org Hi, > If you want to do it as part of the QEMU codebase then a thread is > probably the best way - it avoids the troubles of forking a > multithreaded program and letting go of resources (guest memory, file > descriptors) that aren't needed across fork. That pretty much requires async monitor command support though, so the iothread can continue driving guest i/o while the new worker thread scales/compresses/writes the screendump. cheers, Gerd