From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nke3D-0007XE-Ow for qemu-devel@nongnu.org; Thu, 25 Feb 2010 08:46:47 -0500 Received: from [199.232.76.173] (port=48903 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nke3D-0007Wn-AE for qemu-devel@nongnu.org; Thu, 25 Feb 2010 08:46:47 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nke3C-0000uZ-3K for qemu-devel@nongnu.org; Thu, 25 Feb 2010 08:46:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:32954) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nke3B-0000uH-Lf for qemu-devel@nongnu.org; Thu, 25 Feb 2010 08:46:45 -0500 From: Amit Shah Date: Thu, 25 Feb 2010 19:15:19 +0530 Message-Id: <1267105520-25457-3-git-send-email-amit.shah@redhat.com> In-Reply-To: <1267105520-25457-2-git-send-email-amit.shah@redhat.com> References: <1267105520-25457-1-git-send-email-amit.shah@redhat.com> <1267105520-25457-2-git-send-email-amit.shah@redhat.com> Subject: [Qemu-devel] [PATCH 2/3] s390: Add a 0.12 machine type for compatibility List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Amit Shah , agraf@suse.de 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); -- 1.6.2.5