Skip to contentSkip to conversation

hw/arm/virt: Add 2.11 machine type

PATCH In review Eric Auger 2 participants 4 messages Nov 24, 2017

lore
Share & tools
lore

Eric Auger

author
#0 lore raw

PATCH 1/1 hw/arm/virt: Add 2.11 machine type

Add virt-2.11 machine type.

---

---
 hw/arm/virt.c | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)
hw/arm/virt.c +17 -2
index 9e18b41..151592b 100644
@@ -1618,7 +1618,7 @@ static void machvirt_machine_init(void)
 }
 type_init(machvirt_machine_init);
 
-static void virt_2_10_instance_init(Object *obj)
+static void virt_2_11_instance_init(Object *obj)
 {
     VirtMachineState *vms = VIRT_MACHINE(obj);
     VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(vms);
@@ -1678,10 +1678,25 @@ static void virt_2_10_instance_init(Object *obj)
     vms->irqmap = a15irqmap;
 }
 
+static void virt_machine_2_11_options(MachineClass *mc)
+{
+}
+DEFINE_VIRT_MACHINE_AS_LATEST(2, 11)
+
+#define VIRT_COMPAT_2_10 \
+    HW_COMPAT_2_10
+
+static void virt_2_10_instance_init(Object *obj)
+{
+    virt_2_11_instance_init(obj);
+}
+
 static void virt_machine_2_10_options(MachineClass *mc)
 {
+    virt_machine_2_11_options(mc);
+    SET_MACHINE_COMPAT(mc, VIRT_COMPAT_2_10);
 }
-DEFINE_VIRT_MACHINE_AS_LATEST(2, 10)
+DEFINE_VIRT_MACHINE(2, 10)
 
 #define VIRT_COMPAT_2_9 \
     HW_COMPAT_2_9
Signature · 1 line
2.5.5
#1 lore raw
Quoted 5 lines · Eric Auger

Add virt-2.11 machine type.

---

Argh, did we forget this again? I think we should just make a rule that we have to bump all the versioned machine types when the dev tree reopens...I wonder if there's a way to catch this automatically?

thanks
-- PMM

author
#2 lore raw

Hi Peter,

Quoted 8 lines · Peter Maydell
Quoted 5 lines · Eric Auger

Add virt-2.11 machine type.

---

Argh, did we forget this again?

Yes we did, please apologize for that.

I think we should just

Quoted 2 lines

make a rule that we have to bump all the versioned machine types when the dev tree reopens...

I can take this in charge in the future.

Thanks

Eric
I wonder if there's a

Quoted 5 lines

way to catch this automatically?

thanks
-- PMM

#3 lore raw
Quoted 6 lines · Auger Eric

Hi Peter,

Quoted 3 lines · Peter Maydell
Quoted 2 lines · Eric Auger

Add virt-2.11 machine type.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

---

Argh, did we forget this again?

Yes we did, please apologize for that.

Sorry :-)

I've now applied this to master.

-- PMM