Received: from eggs.gnu.org ([208.118.235.92]:60869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9n5m-0002kj-4B for qemu-devel@nongnu.org; Thu, 06 Sep 2012 21:10:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T9n5l-0001h2-4f for qemu-devel@nongnu.org; Thu, 06 Sep 2012 21:10:42 -0400 Received: from mail-qc0-f173.google.com ([209.85.216.173]:47264) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T9n5l-0001gw-0m for qemu-devel@nongnu.org; Thu, 06 Sep 2012 21:10:41 -0400 Received: by qcab12 with SMTP id b12so1155399qca.4 for ; Thu, 06 Sep 2012 18:10:39 -0700 (PDT) Date: Thu, 6 Sep 2012 21:10:37 -0400 From: Kevin O'Connor Message-ID: <20120907011035.GA3650@morn.localdomain> References: <50482351.6050302@redhat.com> <87pq5zjmsn.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87pq5zjmsn.fsf@codemonkey.ws> Subject: Re: [Qemu-devel] RFC: Add a new boot parameter to set delay time before seabios retry to boot List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Amos Kong , seabios@seabios.org, qemu-devel@nongnu.org, Gleb Natapov On Thu, Sep 06, 2012 at 08:36:24AM -0500, Anthony Liguori wrote: > Amos Kong writes: > > > Hi all, > > > > Seabios supports automatically reboot after X second delay on failed > > boot [1], > > I want to add a parameter for qemu, it's used put a boot parameter into > > romfile > > for seabios to set the delay time. > > > > # qemu ... -boot order=n,menu=on,delay=5 ... > > > > > > Comments & suggestions ? Thanks! > > Why use a file and not just a key/value? SeaBIOS already accepts a number of run-time config settings (such as the reboot delay) via helper functions. For example: u32 retrytime = romfile_loadint("etc/boot-fail-wait", 60*1000); On QEMU, the above will pull the value from the fwcfg "file" interface. The "file" interface is used because SeaBIOS needs a reliable way of obtaining a name, value size, and value. It in no way requires that there be a real file on the user's host machine. -Kevin