mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
machine: Copy QEMUMachine's fields to MachineClass
In order to eliminate the QEMUMachine indirection, add its fields directly to MachineClass. Do not yet remove qemu_machine field because it is still in use by sPAPR. Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com> [AF: Copied fields for sPAPR, too] Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
9e1d668ba9
commit
00b4fbe274
3 changed files with 71 additions and 0 deletions
|
@ -1493,8 +1493,32 @@ static void spapr_machine_class_init(ObjectClass *oc, void *data)
|
|||
{
|
||||
MachineClass *mc = MACHINE_CLASS(oc);
|
||||
FWPathProviderClass *fwc = FW_PATH_PROVIDER_CLASS(oc);
|
||||
QEMUMachine *qm = data;
|
||||
|
||||
mc->qemu_machine = data;
|
||||
|
||||
mc->name = qm->name;
|
||||
mc->alias = qm->alias;
|
||||
mc->desc = qm->desc;
|
||||
mc->init = qm->init;
|
||||
mc->reset = qm->reset;
|
||||
mc->hot_add_cpu = qm->hot_add_cpu;
|
||||
mc->kvm_type = qm->kvm_type;
|
||||
mc->block_default_type = qm->block_default_type;
|
||||
mc->max_cpus = qm->max_cpus;
|
||||
mc->no_serial = qm->no_serial;
|
||||
mc->no_parallel = qm->no_parallel;
|
||||
mc->use_virtcon = qm->use_virtcon;
|
||||
mc->use_sclp = qm->use_sclp;
|
||||
mc->no_floppy = qm->no_floppy;
|
||||
mc->no_cdrom = qm->no_cdrom;
|
||||
mc->no_sdcard = qm->no_sdcard;
|
||||
mc->is_default = qm->is_default;
|
||||
mc->default_machine_opts = qm->default_machine_opts;
|
||||
mc->default_boot_order = qm->default_boot_order;
|
||||
mc->compat_props = qm->compat_props;
|
||||
mc->hw_version = qm->hw_version;
|
||||
|
||||
fwc->get_dev_path = spapr_get_fw_dev_path;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue