From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tj31i-000623-8c for qemu-devel@nongnu.org; Thu, 13 Dec 2012 02:16:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tj31h-0000XZ-2w for qemu-devel@nongnu.org; Thu, 13 Dec 2012 02:16:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:30975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tj31g-0000XR-RX for qemu-devel@nongnu.org; Thu, 13 Dec 2012 02:16:13 -0500 Message-ID: <50C980B8.30407@redhat.com> Date: Thu, 13 Dec 2012 08:16:08 +0100 From: Gerd Hoffmann MIME-Version: 1.0 References: <1355360271.28445.25@snotra> In-Reply-To: <1355360271.28445.25@snotra> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RFC PATCH] Allow building without graphics support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Scott Wood Cc: Anthony Liguori , qemu-devel@nongnu.org On 12/13/12 01:57, Scott Wood wrote: > On 12/12/2012 01:52:29 AM, Gerd Hoffmann wrote: >> On 12/12/12 04:18, Scott Wood wrote: >> > QEMU is sometimes used in embedded contexts, where graphical support >> > is unnecessary. The ability to turn off graphics support not only >> > saves some space, but it eliminates the dependency on pixman. >> >> We have tons of hand-crafted pixel shuffeling code all over the place >> which I want replace with pixman library calls. It's a long road and >> will take quite some time. >> >> I wanna have pixman as core service in qemu for that, not some optional >> add-on. > > Why? Isn't modularity a good thing? It can still be a core service for > any part of QEMU that deals with graphics. A pretty central data structure in qemu (DisplayState / DisplaySurface) carries a pixman image, not some module which can easily be made optional. Just look at the tons of #ifdef'ery you have to do to get this going. > Another thing that is missing on the hardware I'm talking about is a > hard drive, so overly large qemu binaries are also not fun. Oh, using pixman will actually make the qemu binaries smaller as we can replace code with library calls. Independant of that: allow easily stripping down qemu by removing stuff you don't want would be a nice (but non-trivial) project. cheers, Gerd