* [Qemu-devel] [PATCH for 2.11] hw/arm/virt: Add 2.11 machine type
@ 2017-11-24 9:43 Eric Auger
2017-11-24 10:11 ` Peter Maydell
0 siblings, 1 reply; 4+ messages in thread
From: Eric Auger @ 2017-11-24 9:43 UTC (permalink / raw)
To: eric.auger.pro, eric.auger, peter.maydell, qemu-arm, qemu-devel; +Cc: drjones
Add virt-2.11 machine type.
Signed-off-by: Eric Auger <eric.auger@redhat.com>
---
---
hw/arm/virt.c | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index 9e18b41..151592b 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -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
--
2.5.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH for 2.11] hw/arm/virt: Add 2.11 machine type
2017-11-24 9:43 [Qemu-devel] [PATCH for 2.11] hw/arm/virt: Add 2.11 machine type Eric Auger
@ 2017-11-24 10:11 ` Peter Maydell
2017-11-24 10:16 ` Auger Eric
0 siblings, 1 reply; 4+ messages in thread
From: Peter Maydell @ 2017-11-24 10:11 UTC (permalink / raw)
To: Eric Auger; +Cc: eric.auger.pro, qemu-arm, QEMU Developers, Andrew Jones
On 24 November 2017 at 09:43, Eric Auger <eric.auger@redhat.com> wrote:
> Add virt-2.11 machine type.
>
> Signed-off-by: Eric Auger <eric.auger@redhat.com>
>
> ---
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH for 2.11] hw/arm/virt: Add 2.11 machine type
2017-11-24 10:11 ` Peter Maydell
@ 2017-11-24 10:16 ` Auger Eric
2017-11-24 15:13 ` Peter Maydell
0 siblings, 1 reply; 4+ messages in thread
From: Auger Eric @ 2017-11-24 10:16 UTC (permalink / raw)
To: Peter Maydell; +Cc: eric.auger.pro, qemu-arm, QEMU Developers, Andrew Jones
Hi Peter,
On 24/11/17 11:11, Peter Maydell wrote:
> On 24 November 2017 at 09:43, Eric Auger <eric.auger@redhat.com> wrote:
>> Add virt-2.11 machine type.
>>
>> Signed-off-by: Eric Auger <eric.auger@redhat.com>
>>
>> ---
>
> Argh, did we forget this again?
Yes we did, please apologize for that.
I think we should just
> 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
> way to catch this automatically?
>
> thanks
> -- PMM
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH for 2.11] hw/arm/virt: Add 2.11 machine type
2017-11-24 10:16 ` Auger Eric
@ 2017-11-24 15:13 ` Peter Maydell
0 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2017-11-24 15:13 UTC (permalink / raw)
To: Auger Eric; +Cc: eric.auger.pro, qemu-arm, QEMU Developers, Andrew Jones
On 24 November 2017 at 10:16, Auger Eric <eric.auger@redhat.com> wrote:
> Hi Peter,
>
> On 24/11/17 11:11, Peter Maydell wrote:
>> On 24 November 2017 at 09:43, Eric Auger <eric.auger@redhat.com> wrote:
>>> Add virt-2.11 machine type.
>>>
>>> Signed-off-by: Eric Auger <eric.auger@redhat.com>
>>>
>>> ---
>>
>> Argh, did we forget this again?
>
> Yes we did, please apologize for that.
Sorry :-)
I've now applied this to master.
-- PMM
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-11-24 15:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-24 9:43 [Qemu-devel] [PATCH for 2.11] hw/arm/virt: Add 2.11 machine type Eric Auger
2017-11-24 10:11 ` Peter Maydell
2017-11-24 10:16 ` Auger Eric
2017-11-24 15:13 ` Peter Maydell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.