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: