machine: pass all init options as a single QemuOpts
commit9850a5102e2253d801da864f85d26c6016e20ff3
authorAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Jun 2010 22:40:58 +0000 (3 17:40 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 4 Jun 2010 14:22:39 +0000 (4 09:22 -0500)
tree60b1485a5497956c845382b9db1b22ae4a230ced
parentedd769fed331791a88cb89186a1e664c5e43af04
machine: pass all init options as a single QemuOpts

The current method of passing arguments to machine init functions is haphazard.
We pass some arguments as via the init function.  We pass a lot of other
arguments as global variables some that are supported by a lot of boards and
others that are only supported by one board.  It's very difficult to introduce
new parameters in the function signature because of the number of files that
have to be touched.  There is no central way to tie all of the machine options
into the configuration file.

This patch redefines the machine init signature to just take a QemuOpts.  It
also passes the machine as the first parameter to allow multiple boards to be
defined with one init function.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
38 files changed:
hw/an5206.c
hw/axis_dev88.c
hw/boards.h
hw/dummy_m68k.c
hw/etraxfs.c
hw/gumstix.c
hw/integratorcp.c
hw/mainstone.c
hw/mcf5208.c
hw/mips_jazz.c
hw/mips_malta.c
hw/mips_mipssim.c
hw/mips_r4k.c
hw/musicpal.c
hw/nseries.c
hw/omap_sx1.c
hw/palm.c
hw/pc_piix.c
hw/petalogix_s3adsp1800_mmu.c
hw/ppc405_boards.c
hw/ppc440_bamboo.c
hw/ppc_newworld.c
hw/ppc_oldworld.c
hw/ppc_prep.c
hw/ppce500_mpc8544ds.c
hw/r2d.c
hw/realview.c
hw/s390-virtio.c
hw/shix.c
hw/spitz.c
hw/stellaris.c
hw/sun4m.c
hw/sun4u.c
hw/syborg.c
hw/tosa.c
hw/versatilepb.c
hw/xen_machine_pv.c
vl.c