mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
hw: add compat machines for 5.0
Add 5.0 machine types for arm/i440fx/q35/s390x/spapr. For i440fx and q35, unversioned cpu models are still translated to -v1; I'll leave changing this (if desired) to the respective maintainers. Signed-off-by: Cornelia Huck <cohuck@redhat.com> Message-Id: <20191112104811.30323-1-cohuck@redhat.com> Acked-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
91f751dc11
commit
3eb74d2087
7 changed files with 61 additions and 5 deletions
|
@ -4491,15 +4491,26 @@ static const TypeInfo spapr_machine_info = {
|
|||
} \
|
||||
type_init(spapr_machine_register_##suffix)
|
||||
|
||||
/*
|
||||
* pseries-5.0
|
||||
*/
|
||||
static void spapr_machine_5_0_class_options(MachineClass *mc)
|
||||
{
|
||||
/* Defaults for the latest behaviour inherited from the base class */
|
||||
}
|
||||
|
||||
DEFINE_SPAPR_MACHINE(5_0, "5.0", true);
|
||||
|
||||
/*
|
||||
* pseries-4.2
|
||||
*/
|
||||
static void spapr_machine_4_2_class_options(MachineClass *mc)
|
||||
{
|
||||
spapr_machine_5_0_class_options(mc);
|
||||
compat_props_add(mc->compat_props, hw_compat_4_2, hw_compat_4_2_len);
|
||||
}
|
||||
|
||||
DEFINE_SPAPR_MACHINE(4_2, "4.2", true);
|
||||
DEFINE_SPAPR_MACHINE(4_2, "4.2", false);
|
||||
|
||||
/*
|
||||
* pseries-4.1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue