mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
machine: add properties to compat_props incrementaly
Switch to adding compat properties incrementaly instead of completly overwriting compat_props per machine type. That removes data duplication which we have due to nested [PC|SPAPR]_COMPAT_* macros. It also allows to set default device properties from default foo_machine_options() hook, which will be used in following patch for putting VMGENID device as a function if ISA bridge on pc/q35 machines. Suggested-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Igor Mammedov <imammedo@redhat.com> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> [ehabkost: Fixed CCW_COMPAT_* and PC_COMPAT_0_* defines] Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
16714b1680
commit
bacc344c54
8 changed files with 24 additions and 34 deletions
|
@ -330,7 +330,6 @@ static const TypeInfo ccw_machine_info = {
|
|||
HW_COMPAT_2_5
|
||||
|
||||
#define CCW_COMPAT_2_4 \
|
||||
CCW_COMPAT_2_5 \
|
||||
HW_COMPAT_2_4 \
|
||||
{\
|
||||
.driver = TYPE_S390_SKEYS,\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue