Received: from eggs.gnu.org ([208.118.235.92]:38294) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TA4uc-0007on-U7 for qemu-devel@nongnu.org; Fri, 07 Sep 2012 16:12:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TA4ub-00018f-Ly for qemu-devel@nongnu.org; Fri, 07 Sep 2012 16:12:22 -0400 Received: from cantor2.suse.de ([195.135.220.15]:39903 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TA4ub-00018Z-F8 for qemu-devel@nongnu.org; Fri, 07 Sep 2012 16:12:21 -0400 References: <1347031634-12526-1-git-send-email-aurelien@aurel32.net> <1347031634-12526-2-git-send-email-aurelien@aurel32.net> From: Alexander Graf Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii In-Reply-To: <1347031634-12526-2-git-send-email-aurelien@aurel32.net> Message-Id: <852F16CD-A633-4EAD-915F-877CEBF4BCCD@suse.de> Date: Fri, 7 Sep 2012 20:58:06 +0200 Mime-Version: 1.0 (1.0) Subject: Re: [Qemu-devel] [PATCH 2/3] g3beige: add a video card only when requested List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Aurelien Jarno Cc: "qemu-devel@nongnu.org" On 07.09.2012, at 17:27, Aurelien Jarno wrote: > The g3beige machine always add a video card, even when the "-vga none" > is passed. Fix that by checking if it is enabled or not before > instanciating it. >=20 > Cc: Alexander Graf > Signed-off-by: Aurelien Jarno > --- > hw/ppc_oldworld.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) >=20 > diff --git a/hw/ppc_oldworld.c b/hw/ppc_oldworld.c > index 1dcd8a6..363b0e5 100644 > --- a/hw/ppc_oldworld.c > +++ b/hw/ppc_oldworld.c > @@ -250,7 +250,9 @@ static void ppc_heathrow_init (ram_addr_t ram_size, > pci_bus =3D pci_grackle_init(0xfec00000, pic, > get_system_memory(), > get_system_io()); > - pci_vga_init(pci_bus); > + if (std_vga_enabled) { > + pci_vga_init(pci_bus); Shouldn't we try to have some generic function that can create any PCI VGA a= dapter for us? We might want to throw a cirrus or qxl one in a g3beige. Alex > + } >=20 > escc_mem =3D escc_init(0, pic[0x0f], pic[0x10], serial_hds[0], > serial_hds[1], ESCC_CLOCK, 4); > --=20 > 1.7.10.4 >=20