[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [Qemu-devel] [PATCH v4 6/6] hw: Clean up bogus default bo
From: |
Laszlo Ersek |
Subject: |
Re: [Qemu-ppc] [Qemu-devel] [PATCH v4 6/6] hw: Clean up bogus default boot order |
Date: |
Sat, 17 Aug 2013 13:59:18 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130806 Thunderbird/17.0.8 |
On 08/16/13 13:13, address@hidden wrote:
> From: Markus Armbruster <address@hidden>
>
> 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).
>
> * nseries (n800, n810)
>
> Check whether order starts with 'n'. Silently ignored otherwise.
>
> * prep, g3beige, mac99
>
> Extract the first character the machine understands (subset of
> 'a'..'f'). Silently ignored otherwise.
>
> * spapr
>
> Accept an arbitrary string (vl.c restricts it to contain only
> 'a'..'p', no duplicates).
>
> * sun4[mdc]
>
> Use the first character. Silently ignored otherwise.
>
> Strip characters these machines ignore from their default boot order.
>
> For all other machines, remove the unused default boot order
> alltogether.
>
> Note that my rename of QEMUMachine member boot_order to
> default_boot_order and QEMUMachineInitArgs member boot_device to
> boot_order has a welcome side effect: it makes every use of boot
> orders visible in this patch, for easy review.
>
> Signed-off-by: Markus Armbruster <address@hidden>
> ---
> hw/alpha/dp264.c | 1 -
> hw/arm/collie.c | 1 -
> hw/arm/exynos4_boards.c | 2 --
> hw/arm/gumstix.c | 2 --
> hw/arm/highbank.c | 2 --
> hw/arm/integratorcp.c | 1 -
> hw/arm/kzm.c | 1 -
> hw/arm/mainstone.c | 1 -
> hw/arm/musicpal.c | 1 -
> hw/arm/nseries.c | 6 +++---
> hw/arm/omap_sx1.c | 2 --
> hw/arm/palm.c | 1 -
> hw/arm/realview.c | 4 ----
> hw/arm/spitz.c | 4 ----
> hw/arm/stellaris.c | 2 --
> hw/arm/tosa.c | 1 -
> hw/arm/versatilepb.c | 2 --
> hw/arm/vexpress.c | 2 --
> hw/arm/xilinx_zynq.c | 1 -
> hw/arm/z2.c | 1 -
> hw/core/null-machine.c | 1 -
> hw/cris/axis_dev88.c | 1 -
> hw/i386/pc_piix.c | 32
> ++++++++++++++++----------------
> hw/i386/pc_q35.c | 8 ++++----
> hw/i386/xen_machine_pv.c | 1 -
> hw/lm32/lm32_boards.c | 2 --
> hw/lm32/milkymist.c | 1 -
> hw/m68k/an5206.c | 1 -
> hw/m68k/dummy_m68k.c | 1 -
> hw/m68k/mcf5208.c | 1 -
> hw/microblaze/petalogix_ml605_mmu.c | 1 -
> hw/microblaze/petalogix_s3adsp1800_mmu.c | 1 -
> hw/mips/mips_fulong2e.c | 1 -
> hw/mips/mips_jazz.c | 2 --
> hw/mips/mips_malta.c | 1 -
> hw/mips/mips_mipssim.c | 1 -
> hw/mips/mips_r4k.c | 1 -
> hw/openrisc/openrisc_sim.c | 1 -
> hw/ppc/e500plat.c | 1 -
> hw/ppc/mac_newworld.c | 4 ++--
> hw/ppc/mac_oldworld.c | 4 ++--
> hw/ppc/mpc8544ds.c | 1 -
> hw/ppc/ppc405_boards.c | 2 --
> hw/ppc/ppc440_bamboo.c | 1 -
> hw/ppc/prep.c | 4 ++--
> hw/ppc/spapr.c | 4 ++--
> hw/ppc/virtex_ml507.c | 1 -
> hw/s390x/s390-virtio-ccw.c | 1 -
> hw/s390x/s390-virtio.c | 1 -
> hw/sh4/r2d.c | 1 -
> hw/sh4/shix.c | 1 -
> hw/sparc/leon3.c | 1 -
> hw/sparc/sun4m.c | 22 +++++++++++-----------
> hw/sparc64/sun4u.c | 10 +++++-----
> hw/unicore32/puv3.c | 1 -
> hw/xtensa/xtensa_lx60.c | 2 --
> hw/xtensa/xtensa_sim.c | 1 -
> include/hw/boards.h | 7 ++-----
> vl.c | 4 ++--
> 59 files changed, 51 insertions(+), 119 deletions(-)
This patch wasn't easy to verify. I hope I haven't missed anything.
Reviewed-by: Laszlo Ersek <address@hidden>