Patchwork [3/3] s390-virtio: Disable new virtio-serial features for 0.12 machine type

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

Comments

Amit Shah - Feb. 25, 2010, 1:45 p.m.
Disable the MULTIPORT feature and MSI vectors for the 0.12 machine
types; those features are added only for 0.13 onwards.

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

Patch

diff --git a/hw/s390-virtio.c b/hw/s390-virtio.c
index a3cbfb6..f027521 100644
--- a/hw/s390-virtio.c
+++ b/hw/s390-virtio.c
@@ -263,6 +263,18 @@  static QEMUMachine s390_machine_v0_12 = {
     .use_virtcon = 1,
     .no_vga = 1,
     .max_cpus = 255,
+    .compat_props = (GlobalProperty[]) {
+        {
+            .driver   = "virtio-serial-s390",
+            .property = "max_nr_ports",
+            .value    = stringify(1),
+        },{
+            .driver   = "virtio-serial-s390",
+            .property = "vectors",
+            .value    = stringify(0),
+        },
+        { /* end of list */ }
+  },
 };
 
 static void s390_machine_init(void)