mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
compat: replace PC_COMPAT_2_2 & HW_COMPAT_2_2 macros
Use static arrays instead. I decided to rename the conflicting pc_compat_2_2() function with pc_compat_2_2_fn(). Suggested-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Acked-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
8995dd9009
commit
1c30044e1a
7 changed files with 110 additions and 105 deletions
|
@ -4341,7 +4341,6 @@ DEFINE_SPAPR_MACHINE(2_3, "2.3", false);
|
|||
static void spapr_machine_2_2_class_options(MachineClass *mc)
|
||||
{
|
||||
static GlobalProperty compat[] = {
|
||||
HW_COMPAT_2_2
|
||||
{
|
||||
.driver = TYPE_SPAPR_PCI_HOST_BRIDGE,
|
||||
.property = "mem_win_size",
|
||||
|
@ -4350,6 +4349,7 @@ static void spapr_machine_2_2_class_options(MachineClass *mc)
|
|||
};
|
||||
|
||||
spapr_machine_2_3_class_options(mc);
|
||||
compat_props_add(mc->compat_props, hw_compat_2_2, hw_compat_2_2_len);
|
||||
compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat));
|
||||
mc->default_machine_opts = "modern-hotplug-events=off,suppress-vmdesc=on";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue