Received: from eggs.gnu.org ([208.118.235.92]:53630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TRUUb-0007vR-5s for qemu-devel@nongnu.org; Thu, 25 Oct 2012 16:57:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TRUUZ-0008L3-CG for qemu-devel@nongnu.org; Thu, 25 Oct 2012 16:57:29 -0400 Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Alexander Graf In-Reply-To: Date: Thu, 25 Oct 2012 22:57:19 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1351175895-27131-1-git-send-email-aviksil@linux.vnet.ibm.com> <1351175895-27131-2-git-send-email-aviksil@linux.vnet.ibm.com> <877gqetiep.fsf@codemonkey.ws> Subject: Re: [Qemu-devel] [PATCH v2 1/2] Make default boot order machine specific List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Anthony Liguori , david@gibson.dropbear.id.au, qemu-ppc@nongnu.org, Avik Sil , qemu-devel@nongnu.org On 25.10.2012, at 22:50, Peter Maydell wrote: > On 25 October 2012 21:18, Anthony Liguori wrote: >> The other approach to this would be: >>=20 >> static QEMUMachine pseries_machine =3D { >> .no_boot_order =3D 1, >> }; >>=20 >> Which I think is what Peter is suggesting. I'm not a huge fan of = this >> because it's backwards logic but we already do this for a bunch of = other >> things so I can't object too strongly to it. >=20 > The other issue is that "cad" is a load of rubbish for half of these > boards, which don't have anything resembling the usual PC boot > devices and probably don't pay attention to -boot anyway. A patch > which only applied a boot order to boards which actually used it > would probably also be rather shorter. That's what v1 did, and it's ok, if it's mentioned explicitly and = thought through properly. Just doing this without proper reasoning is = bad, because you potentially change semantics of -boot if you miss = anything. On OpenBIOS with PPC we actually make use of the -boot = arguments for example. Hence having a common set of default options the way Anthony put it = seems the most sane solution forward. It guarantees you don't break = anything in patch 1. Then it goes in and actually changes the semantics = for the one machine you want to change in patch 2. Alex