Patchwork [2/3] s390: Add a 0.12 machine type for compatibility

login
register
mail settings
Submitter Amit Shah
Date Feb. 25, 2010, 1:45 p.m.
Message ID <1267105520-25457-3-git-send-email-amit.shah@redhat.com>
Download mbox | patch
Permalink /patch/46236/
State New
Headers show

Comments

Amit Shah - Feb. 25, 2010, 1:45 p.m.
Add a 0.12 s390-virtio machine type for compatibility with older
versions.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
 hw/s390-virtio.c |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

Patch

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);