Received: from eggs.gnu.org ([2001:4830:134:3::10]:54448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1am0gT-0000bo-N7 for qemu-devel@nongnu.org; Fri, 01 Apr 2016 11:08:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1am0gN-0001yi-Tz for qemu-devel@nongnu.org; Fri, 01 Apr 2016 11:08:25 -0400 Received: from mail-qg0-x22e.google.com ([2607:f8b0:400d:c04::22e]:34252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1am0gN-0001yW-PZ for qemu-devel@nongnu.org; Fri, 01 Apr 2016 11:08:19 -0400 Received: by mail-qg0-x22e.google.com with SMTP id n34so90648902qge.1 for ; Fri, 01 Apr 2016 08:08:19 -0700 (PDT) Date: Fri, 1 Apr 2016 11:08:18 -0400 From: Kevin O'Connor Message-ID: <20160401150818.GB25490@morn.lan> References: <20160331221730.GA5637@redhat.com> <20160331224432.GA4583@morn.lan> <20160401080222.GC32728@redhat.com> <56FE2D42.5020607@redhat.com> <20160401081417.GD32728@redhat.com> <56FE3045.2030003@redhat.com> <20160401084456.GF32728@redhat.com> <1459502310.7011.37.camel@redhat.com> <20160401101733.GI32728@redhat.com> <1459508875.7011.62.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1459508875.7011.62.camel@redhat.com> Subject: Re: [Qemu-devel] Why is SeaBIOS used with -kernel? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: marc.mari.barcelo@gmail.com, Paolo Bonzini , qemu-devel@nongnu.org, "Richard W.M. Jones" , Stefan Hajnoczi On Fri, Apr 01, 2016 at 01:07:55PM +0200, Gerd Hoffmann wrote: > On Fr, 2016-04-01 at 11:17 +0100, Richard W.M. Jones wrote: > > On Fri, Apr 01, 2016 at 11:18:30AM +0200, Gerd Hoffmann wrote: > > > Hi, > > > > > > > I wonder how we can make use of this in qemu and downstream distros? > > > > Can we have a bios-min.bin which is used with -kernel boots? > > > > > > We already build two seabios roms: one full featued and one slightly > > > stripped down to keep it below 128k, for backward compatibility with old > > > machine types. > > > > > > Adding a third config for -kernel boot should be easy. For that use > > > case we can probably also turn on seabios logging to the serial console > > > and drop sgabios. We don't need input (no boot menu) and we also don't > > > need to hook into int10 (no grub/ipxe using that for output). > > > > SeaBIOS logging is slow (or more likely, serial output is slow). > > And sgabios is useful for debugging. > > Ah, I see. debuglevel=1 prints too much and debuglevel=0 has no logging > at all. We'd need seabios log at least the version banner to serial > even with debuglevel=0 to replace sgabios. The debug level of messages in SeaBIOS are a bit haphazard today. I think it would be a good idea to document what types of messages go in each debug level and then update the current debug messages to fit that description. It sounds like level=1 is too verbose today. -Kevin