spapr: Add pseries-2.3 machine
The next patch will make MMIO space bigger and keep the old value for older pseries machines. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
3e4ac96871
commit
3dab024430
|
@ -1784,8 +1784,6 @@ static void spapr_machine_2_2_class_init(ObjectClass *oc, void *data)
|
||||||
|
|
||||||
mc->name = "pseries-2.2";
|
mc->name = "pseries-2.2";
|
||||||
mc->desc = "pSeries Logical Partition (PAPR compliant) v2.2";
|
mc->desc = "pSeries Logical Partition (PAPR compliant) v2.2";
|
||||||
mc->alias = "pseries";
|
|
||||||
mc->is_default = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const TypeInfo spapr_machine_2_2_info = {
|
static const TypeInfo spapr_machine_2_2_info = {
|
||||||
|
@ -1794,11 +1792,28 @@ static const TypeInfo spapr_machine_2_2_info = {
|
||||||
.class_init = spapr_machine_2_2_class_init,
|
.class_init = spapr_machine_2_2_class_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void spapr_machine_2_3_class_init(ObjectClass *oc, void *data)
|
||||||
|
{
|
||||||
|
MachineClass *mc = MACHINE_CLASS(oc);
|
||||||
|
|
||||||
|
mc->name = "pseries-2.3";
|
||||||
|
mc->desc = "pSeries Logical Partition (PAPR compliant) v2.3";
|
||||||
|
mc->alias = "pseries";
|
||||||
|
mc->is_default = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
static const TypeInfo spapr_machine_2_3_info = {
|
||||||
|
.name = TYPE_SPAPR_MACHINE "2.3",
|
||||||
|
.parent = TYPE_SPAPR_MACHINE,
|
||||||
|
.class_init = spapr_machine_2_3_class_init,
|
||||||
|
};
|
||||||
|
|
||||||
static void spapr_machine_register_types(void)
|
static void spapr_machine_register_types(void)
|
||||||
{
|
{
|
||||||
type_register_static(&spapr_machine_info);
|
type_register_static(&spapr_machine_info);
|
||||||
type_register_static(&spapr_machine_2_1_info);
|
type_register_static(&spapr_machine_2_1_info);
|
||||||
type_register_static(&spapr_machine_2_2_info);
|
type_register_static(&spapr_machine_2_2_info);
|
||||||
|
type_register_static(&spapr_machine_2_3_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
type_init(spapr_machine_register_types)
|
type_init(spapr_machine_register_types)
|
||||||
|
|
Loading…
Reference in a new issue