From: "Michael S. Tsirkin" <mst@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: aliguori@us.ibm.com, mjt@tls.msk.ru, qemu-devel@nongnu.org,
agraf@suse.de, blauwirbel@gmail.com, qemu-ppc@nongnu.org,
aviksil@linux.vnet.ibm.com
Subject: Re: [Qemu-devel] [PATCH v4 0/6] Clean up bogus default boot order
Date: Sun, 25 Aug 2013 14:10:01 +0300 [thread overview]
Message-ID: <20130825111001.GC1137@redhat.com> (raw)
In-Reply-To: <87r4dkpozu.fsf@blackfin.pond.sub.org>
On Fri, Aug 23, 2013 at 02:31:49PM +0200, Markus Armbruster wrote:
> "Michael S. Tsirkin" <mst@redhat.com> writes:
>
> > On Fri, Aug 16, 2013 at 01:13:44PM +0200, armbru@redhat.com wrote:
> >> From: Markus Armbruster <armbru@redhat.com>
> >>
> >> The first five patches are admittedly related to the stated purpose of
> >> this series pretty much only by "I can't stand perpetuating this
> >> stupid crap". Max Filippov and Peter Maydell already cleaned up
> >> Xtensa and ARM the same way.
> >
> > I picked up patches 3,4 and 5 on my tree.
> > 1 and 2 were rebased by Eduardo, I'm taking them
> > from his patchset.
> > 6 needs to be rebased and comments addressed.
>
> Applies fine with "git-am -3". Pushed to
> http://repo.or.cz/w/qemu/armbru.git/shortlog/refs/heads/boot-order
> for your convenience.
>
> We discussed the patch at some length, but it's not 100% clear to me
> what exactly you'd like me to address and how. So let's recap briefly.
>
> I think your main point was that PC machine type declarations are a bit
> repetitive. They all share two lines:
>
> .max_cpus = 255,
> DEFAULT_MACHINE_OPTIONS,
>
> where DEFAULT_MACHINE_OPTIONS is defined as
>
> #define DEFAULT_MACHINE_OPTIONS \
> .boot_order = "cad"
>
> Many of them also share one of these lines:
>
> .desc = "Standard PC (Q35 + ICH9, 2009)",
> .desc = "Standard PC (i440FX + PIIX, 1996)",
> .desc = "Standard PC",
>
> My patch touches only the shared DEFAULT_MACHINE_OPTIONS line. It
> becomes
>
> .boot_order = "cad"
>
> Commit message explains why:
>
> We set default boot order "cad" in every single machine definition
> except "pseries" and "moxiesim", even though very few boards actually
> care for boot order, and "cad" makes sense for even fewer.
>
> Machines that care:
>
> * pc and its variants
>
> Accept up to three letters 'a', 'b' (undocumented alias for 'a'),
> 'c', 'd' and 'n'. Reject all others (fatal with -boot).
>
> [...]
>
> Strip characters these machines ignore from their default boot order.
>
> For all other machines, remove the unused default boot order
> alltogether.
>
> The change is systematic: if the machine uses .boot_order, strip the
> characters it ignores from its initial value, else drop the initializer,
> so .boot_order remains null.
>
> I don't want to squash further cleanup into this one, because it's hard
> enough to review as it is (and it already got competent review). I
> could be persuaded to do further cleanup on top, but you need to tell me
> what cleanup you want. Probably faster if you do it yourself :)
Responded in the relevant thread.
Hope this helps.
--
MST
prev parent reply other threads:[~2013-08-25 11:08 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-16 11:13 [Qemu-devel] [PATCH v4 0/6] Clean up bogus default boot order armbru
2013-08-16 11:13 ` [Qemu-devel] [PATCH v4 1/6] pc: Don't prematurely explode QEMUMachineInitArgs armbru
2013-08-17 10:07 ` Laszlo Ersek
2013-08-19 9:09 ` Markus Armbruster
2013-08-21 18:05 ` Eduardo Habkost
2013-08-16 11:13 ` [Qemu-devel] [PATCH v4 2/6] pc: Don't explode QEMUMachineInitArgs into local variables needlessly armbru
2013-08-17 10:12 ` Laszlo Ersek
2013-08-21 18:06 ` Eduardo Habkost
2013-08-16 11:13 ` [Qemu-devel] [PATCH v4 3/6] sun4: Don't prematurely explode QEMUMachineInitArgs armbru
2013-08-17 10:29 ` Laszlo Ersek
2013-08-19 9:15 ` Markus Armbruster
2013-08-16 11:13 ` [Qemu-devel] [PATCH v4 4/6] ppc: Don't explode QEMUMachineInitArgs into local variables needlessly armbru
2013-08-17 10:33 ` Laszlo Ersek
2013-08-16 11:13 ` [Qemu-devel] [PATCH v4 5/6] ppc: Don't duplicate QEMUMachineInitArgs in PPCE500Params armbru
2013-08-17 10:46 ` Laszlo Ersek
2013-08-19 9:24 ` Markus Armbruster
2013-08-19 9:36 ` Laszlo Ersek
2013-08-16 11:13 ` [Qemu-devel] [PATCH v4 6/6] hw: Clean up bogus default boot order armbru
2013-08-17 11:59 ` Laszlo Ersek
2013-08-21 20:28 ` [Qemu-devel] [PATCH v4 0/6] " Michael S. Tsirkin
2013-08-21 20:29 ` Michael S. Tsirkin
2013-08-23 12:31 ` Markus Armbruster
2013-08-25 11:10 ` Michael S. Tsirkin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130825111001.GC1137@redhat.com \
--to=mst@redhat.com \
--cc=agraf@suse.de \
--cc=aliguori@us.ibm.com \
--cc=armbru@redhat.com \
--cc=aviksil@linux.vnet.ibm.com \
--cc=blauwirbel@gmail.com \
--cc=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).