From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7mXy-0000s6-2U for qemu-devel@nongnu.org; Wed, 14 Mar 2012 07:39:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S7mXr-0004pA-Qs for qemu-devel@nongnu.org; Wed, 14 Mar 2012 07:39:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:16938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S7mXr-0004p2-Ih for qemu-devel@nongnu.org; Wed, 14 Mar 2012 07:39:07 -0400 Message-ID: <4F60842C.4020107@redhat.com> Date: Wed, 14 Mar 2012 12:42:36 +0100 From: Kevin Wolf MIME-Version: 1.0 References: <00c1eea5-ccb2-4b54-89f8-bdbf00fdc8a4@zmail17.collab.prod.int.phx2.redhat.com> <4F5F48F9.7090501@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: qemu-devel@nongnu.org, =?ISO-8859-1?Q?Marc-Andr=E9_Lure?= =?ISO-8859-1?Q?au?= , =?ISO-8859-1?Q?Marc-A?= =?ISO-8859-1?Q?ndr=E9_Lureau?= , Gerd Hoffmann , =?ISO-8859-1?Q?Marc?= =?ISO-8859-1?Q?-Andr=E9_Lureau?= Am 14.03.2012 10:42, schrieb Stefan Hajnoczi: > On Tue, Mar 13, 2012 at 1:17 PM, Gerd Hoffmann wrote: >> 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. > > The most practical first step would be simply sending the ppm over a > socket from ppm_save(). The 'screendump' command today already blocks > so no new badness is being added. There would be no threads or fancy > image encoding. Saving PNGs would be useful even without a management tool. Kevin