[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 02/25] spapr: Create pseries-2.5 machine
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PATCH 02/25] spapr: Create pseries-2.5 machine |
Date: |
Thu, 3 Sep 2015 14:27:53 +1000 |
Add pseries-2.5 machine version.
Signed-off-by: Bharata B Rao <address@hidden>
[Altered to merge before memory hotplug -- dwg]
Signed-off-by: David Gibson <address@hidden>
---
hw/ppc/spapr.c | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
index d6f1c84..c03f89c 100644
--- a/hw/ppc/spapr.c
+++ b/hw/ppc/spapr.c
@@ -1980,7 +1980,7 @@ static void spapr_machine_2_4_class_init(ObjectClass *oc,
void *data)
mc->name = "pseries-2.4";
mc->desc = "pSeries Logical Partition (PAPR compliant) v2.4";
mc->alias = "pseries";
- mc->is_default = 1;
+ mc->is_default = 0;
}
static const TypeInfo spapr_machine_2_4_info = {
@@ -1989,6 +1989,22 @@ static const TypeInfo spapr_machine_2_4_info = {
.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 = TYPE_SPAPR_MACHINE "2.5",
+ .parent = TYPE_SPAPR_MACHINE,
+ .class_init = spapr_machine_2_5_class_init,
+};
+
static void spapr_machine_register_types(void)
{
type_register_static(&spapr_machine_info);
@@ -1996,6 +2012,7 @@ static void spapr_machine_register_types(void)
type_register_static(&spapr_machine_2_2_info);
type_register_static(&spapr_machine_2_3_info);
type_register_static(&spapr_machine_2_4_info);
+ type_register_static(&spapr_machine_2_5_info);
}
type_init(spapr_machine_register_types)
--
2.4.3
- [Qemu-ppc] [PATCH 00/25] sPAPR (pseries) patch backlog 2015-00-03, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 01/25] spapr: Provide an error message when migration fails due to htab_shift mismatch, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 11/25] spapr: Make ibm, change-msi respect 3 return values, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 06/25] spapr: Make hash table size a factor of maxram_size, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 10/25] spapr: Add /rtas/ibm,change-msix-capable, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 13/25] spapr_drc: Fix potential undefined behaviour, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 02/25] spapr: Create pseries-2.5 machine,
David Gibson <=
- [Qemu-ppc] [PATCH 12/25] spapr: SPLPAR Characteristics, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 14/25] spapr: add dumpdtb support, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 04/25] spapr: Add LMB DR connectors, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 22/25] spapr_rtas: Prevent QEMU crash during hotplug without a prior device_add, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 03/25] spapr: Initialize hotplug memory address space, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 07/25] spapr: Memory hotplug support, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 08/25] spapr: Don't allow memory hotplug to memory less nodes, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 09/25] spapr: Add /ibm,partition-name, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 17/25] spapr: Provide better error message when slots exceed max allowed, David Gibson, 2015/09/03
- [Qemu-ppc] [PATCH 20/25] spapr: Support hotplug by specifying DRC count, David Gibson, 2015/09/03