From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:56312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TODTe-0006KR-UA for qemu-devel@nongnu.org; Tue, 16 Oct 2012 16:11:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TODTZ-0003Yv-4U for qemu-devel@nongnu.org; Tue, 16 Oct 2012 16:10:58 -0400 Received: from gate.crashing.org ([63.228.1.57]:56465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TODTV-0003VU-N9 for qemu-devel@nongnu.org; Tue, 16 Oct 2012 16:10:53 -0400 Message-ID: <1350418073.4678.58.camel@pasglop> From: Benjamin Herrenschmidt Date: Wed, 17 Oct 2012 07:07:53 +1100 In-Reply-To: <87wqyqyyxi.fsf@codemonkey.ws> References: <87wqyqyyxi.fsf@codemonkey.ws> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Subject: Re: [Qemu-devel] nvram and boot order List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Avik Sil , David Gibson , qemu-devel@nongnu.org, Alex Graf On Tue, 2012-10-16 at 14:55 -0500, Anthony Liguori wrote: > > 4) If -boot is specified, the parameter should alter the contents of > NVRAM to change the boot order to what is specified by -boot. > > 5) If ,bootorder is specified, it should take predence over -boot. > > 6) ,bootorder= should also alter the contents of NVRAM to determine > the > boot order That's where I disagree. At least for us... I don't see why -boot or -bootorder should alter the nvram content. The plan is to have the nvram content essentially in control of SLOF (ie. the BIOS in x86 land). Qemu doesn't know much of anything appart from providing the storage for it. I see -boot and -bootorder as ways to *temporarily* override whatever setting was put in nvram by the guest. The nvram is typically populated by the distro installer (though sometimes by hand by the user). One may want to just temporarily boot from a CD (rescue for example, or to test a live CD or something ...), that doesn't mean the permanent setting should be altered. I would pass -boot and -bootorder to SLOF like we pass the current bootlist today and let it deal with it, I wouldn't touch the nvram. Cheers, Ben.