From patchwork Thu Feb 25 13:45:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [2/3] s390: Add a 0.12 machine type for compatibility From: Amit Shah X-Patchwork-Id: 46236 Message-Id: <1267105520-25457-3-git-send-email-amit.shah@redhat.com> To: qemu-devel@nongnu.org Cc: Amit Shah , agraf@suse.de Date: Thu, 25 Feb 2010 19:15:19 +0530 Add a 0.12 s390-virtio machine type for compatibility with older versions. Signed-off-by: Amit Shah --- hw/s390-virtio.c | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c index 3582728..a3cbfb6 100644 --- a/hw/s390-virtio.c +++ b/hw/s390-virtio.c @@ -242,7 +242,7 @@ static void s390_init(ram_addr_t ram_size, } static QEMUMachine s390_machine = { - .name = "s390-virtio", + .name = "s390-virtio-0.13", .alias = "s390", .desc = "VirtIO based S390 machine", .init = s390_init, @@ -254,9 +254,21 @@ static QEMUMachine s390_machine = { .is_default = 1, }; +static QEMUMachine s390_machine_v0_12 = { + .name = "s390-virtio-0.12", + .desc = "VirtIO based S390 machine for v0.12 compatibility", + .init = s390_init, + .no_serial = 1, + .no_parallel = 1, + .use_virtcon = 1, + .no_vga = 1, + .max_cpus = 255, +}; + static void s390_machine_init(void) { qemu_register_machine(&s390_machine); + qemu_register_machine(&s390_machine_v0_12); } machine_init(s390_machine_init);