提交 fb0fc8f6 编写于 作者: D David Gibson

spapr: Create pseries-2.5 machine

Add pseries-2.5 machine version.
Signed-off-by: NBharata B Rao <bharata@linux.vnet.ibm.com>
[Altered to merge before memory hotplug -- dwg]
[Altered to work with b9f072d0 -- dwg]
Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
上级 613e7a76
...@@ -1976,7 +1976,7 @@ static void spapr_machine_2_4_class_init(ObjectClass *oc, void *data) ...@@ -1976,7 +1976,7 @@ static void spapr_machine_2_4_class_init(ObjectClass *oc, void *data)
mc->desc = "pSeries Logical Partition (PAPR compliant) v2.4"; mc->desc = "pSeries Logical Partition (PAPR compliant) v2.4";
mc->alias = "pseries"; mc->alias = "pseries";
mc->is_default = 1; mc->is_default = 0;
} }
static const TypeInfo spapr_machine_2_4_info = { static const TypeInfo spapr_machine_2_4_info = {
...@@ -1985,6 +1985,22 @@ static const TypeInfo spapr_machine_2_4_info = { ...@@ -1985,6 +1985,22 @@ static const TypeInfo spapr_machine_2_4_info = {
.class_init = spapr_machine_2_4_class_init, .class_init = spapr_machine_2_4_class_init,
}; };
static void spapr_machine_2_5_class_init(ObjectClass *oc, void *data)
{
MachineClass *mc = MACHINE_CLASS(oc);
mc->name = "pseries-2.5";
mc->desc = "pSeries Logical Partition (PAPR compliant) v2.5";
mc->alias = "pseries";
mc->is_default = 1;
}
static const TypeInfo spapr_machine_2_5_info = {
.name = MACHINE_TYPE_NAME("pseries-2.5"),
.parent = TYPE_SPAPR_MACHINE,
.class_init = spapr_machine_2_5_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);
...@@ -1992,6 +2008,7 @@ static void spapr_machine_register_types(void) ...@@ -1992,6 +2008,7 @@ static void spapr_machine_register_types(void)
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_register_static(&spapr_machine_2_3_info);
type_register_static(&spapr_machine_2_4_info); type_register_static(&spapr_machine_2_4_info);
type_register_static(&spapr_machine_2_5_info);
} }
type_init(spapr_machine_register_types) type_init(spapr_machine_register_types)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册