From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34106) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fb7AB-0005cV-8C for qemu-devel@nongnu.org; Thu, 05 Jul 2018 12:31:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fb7A7-00035Y-9W for qemu-devel@nongnu.org; Thu, 05 Jul 2018 12:31:23 -0400 Date: Thu, 5 Jul 2018 13:31:08 -0300 From: Eduardo Habkost Message-ID: <20180705163108.GL7451@localhost.localdomain> References: <20180704112859.20146-1-kraxel@redhat.com> <20180704185321.GZ7451@localhost.localdomain> <6a0aba7b46b168360fb291eaec769eb0@sebastianbauer.info> <20180704205206.GG7451@localhost.localdomain> <20180704210459.GH7451@localhost.localdomain> <20180705131211.GJ7451@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH] vga: make stdvga the global default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mark Cave-Ayland Cc: Sebastian Bauer , Aleksandar Markovic , "Michael S. Tsirkin" , Richard Henderson , qemu-devel@nongnu.org, qemu-ppc@nongnu.org, Gerd Hoffmann , Marcel Apfelbaum , Paolo Bonzini , BALATON Zoltan , David Gibson On Thu, Jul 05, 2018 at 05:24:09PM +0100, Mark Cave-Ayland wrote: > On 05/07/18 14:12, Eduardo Habkost wrote: > > > > I also checked the code, default values are used also for other fields in > > > that struct (e.g., default_cpus). If default values are considered fragile, > > > they must be changed as well in the middle term. However, given a solid > > > documentation (which is currently missing for these fields) I still think > > > that default values are acceptable. > > > > > > Note that there seems also be the possibility to set != NULL default values > > > in the machine_class_init() function. > > > > I don't mind if the default value is defined at > > machine_class_init() or main(). What bothers me is a default > > value that depends on vga_interface_available(), because it can > > be easily broken by a build config change (as demonstrated by the > > bug fixed by this patch). > > I've already sent David a for-3.0 patch to set stdvga for the PPC Mac > machines, but should I also do the same for PReP too? > > Is it also worth explicitly adding this for sun4u? And what about > non-ISA/PCI cards such as sun4m's TCX/CG3? > I think it's worth it. Having fewer machines with default_display==NULL sounds like a good idea to me. Having zero machines with default_display==NULL (so we can finally delete the vga_interface_available() checks on main()) would be even better. This is not urgent, though (unless there we plan to change CONFIG_VGA_* on default-configs again in 3.0). -- Eduardo