machine: Make -machine opts properties of MachineState

Make machine's QemuOpts QOM properties of /machine. The properties
are automatically filled in. This opens the possibility to create
opts per machine rather than global.

Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
Marcel Apfelbaum 2014-05-26 15:40:58 +03:00 committed by Andreas Färber
parent a199b2b6a5
commit 6b1b144019
3 changed files with 291 additions and 6 deletions

View file

@ -114,9 +114,9 @@ struct MachineState {
ram_addr_t ram_size;
const char *boot_order;
const char *kernel_filename;
const char *kernel_cmdline;
const char *initrd_filename;
char *kernel_filename;
char *kernel_cmdline;
char *initrd_filename;
const char *cpu_model;
};