mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
hw: add compat machines for 4.2
Add 4.2 machine types for arm/i440fx/q35/s390x/spapr.
For i440fx and q35, unversioned cpu models are still translated
to -v1, as 0788a56bd1
("i386: Make unversioned CPU models be
aliases") states this should only transition to the latest cpu
model version in 4.3 (or later).
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20190724103524.20916-1-cohuck@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
a14f04ebba
commit
9aec2e52ce
9 changed files with 73 additions and 8 deletions
|
@ -4431,14 +4431,25 @@ static const TypeInfo spapr_machine_info = {
|
|||
type_init(spapr_machine_register_##suffix)
|
||||
|
||||
/*
|
||||
* pseries-4.1
|
||||
* pseries-4.2
|
||||
*/
|
||||
static void spapr_machine_4_1_class_options(MachineClass *mc)
|
||||
static void spapr_machine_4_2_class_options(MachineClass *mc)
|
||||
{
|
||||
/* Defaults for the latest behaviour inherited from the base class */
|
||||
}
|
||||
|
||||
DEFINE_SPAPR_MACHINE(4_1, "4.1", true);
|
||||
DEFINE_SPAPR_MACHINE(4_2, "4.2", true);
|
||||
|
||||
/*
|
||||
* pseries-4.1
|
||||
*/
|
||||
static void spapr_machine_4_1_class_options(MachineClass *mc)
|
||||
{
|
||||
spapr_machine_4_2_class_options(mc);
|
||||
compat_props_add(mc->compat_props, hw_compat_4_1, hw_compat_4_1_len);
|
||||
}
|
||||
|
||||
DEFINE_SPAPR_MACHINE(4_1, "4.1", false);
|
||||
|
||||
/*
|
||||
* pseries-4.0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue