Blame 0014-pc-fix-event_idx-compatibility-for-virtio-devices.patch

Justin M. Forbes 45e84a
From 7e2191ae9898cc957a3d1991aff0e40f2e0f44a4 Mon Sep 17 00:00:00 2001
Justin M. Forbes 45e84a
From: Anthony Liguori <aliguori@us.ibm.com>
Justin M. Forbes 45e84a
Date: Sun, 18 Dec 2011 13:07:03 -0600
Justin M. Forbes 45e84a
Subject: [PATCH 14/25] pc: fix event_idx compatibility for virtio devices
Justin M. Forbes 45e84a
Justin M. Forbes 45e84a
event_idx was introduced in 0.15 and must be disabled for all virtio-pci devices
Justin M. Forbes 45e84a
(including virtio-balloon-pci).
Justin M. Forbes 45e84a
Justin M. Forbes 45e84a
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Justin M. Forbes 45e84a
---
Justin M. Forbes 45e84a
 hw/pc_piix.c |   32 ++++++++++++++++++++++++++++++++
Justin M. Forbes 45e84a
 1 files changed, 32 insertions(+), 0 deletions(-)
Justin M. Forbes 45e84a
Justin M. Forbes 45e84a
diff --git a/hw/pc_piix.c b/hw/pc_piix.c
Justin M. Forbes 45e84a
index 9093a28..05000e3 100644
Justin M. Forbes 45e84a
--- a/hw/pc_piix.c
Justin M. Forbes 45e84a
+++ b/hw/pc_piix.c
Justin M. Forbes 45e84a
@@ -328,6 +328,22 @@ static QEMUMachine pc_machine_v0_14 = {
Justin M. Forbes 45e84a
             .driver   = "qxl-vga",
Justin M. Forbes 45e84a
             .property = "revision",
Justin M. Forbes 45e84a
             .value    = stringify(2),
Justin M. Forbes 45e84a
+        },{
Justin M. Forbes 45e84a
+            .driver   = "virtio-blk-pci",
Justin M. Forbes 45e84a
+            .property = "event_idx",
Justin M. Forbes 45e84a
+            .value    = "off",
Justin M. Forbes 45e84a
+        },{
Justin M. Forbes 45e84a
+            .driver   = "virtio-serial-pci",
Justin M. Forbes 45e84a
+            .property = "event_idx",
Justin M. Forbes 45e84a
+            .value    = "off",
Justin M. Forbes 45e84a
+        },{
Justin M. Forbes 45e84a
+            .driver   = "virtio-net-pci",
Justin M. Forbes 45e84a
+            .property = "event_idx",
Justin M. Forbes 45e84a
+            .value    = "off",
Justin M. Forbes 45e84a
+        },{
Justin M. Forbes 45e84a
+            .driver   = "virtio-balloon-pci",
Justin M. Forbes 45e84a
+            .property = "event_idx",
Justin M. Forbes 45e84a
+            .value    = "off",
Justin M. Forbes 45e84a
         },
Justin M. Forbes 45e84a
         { /* end of list */ }
Justin M. Forbes 45e84a
     },
Justin M. Forbes 45e84a
@@ -368,6 +384,10 @@ static QEMUMachine pc_machine_v0_13 = {
Justin M. Forbes 45e84a
             .property = "event_idx",
Justin M. Forbes 45e84a
             .value    = "off",
Justin M. Forbes 45e84a
         },{
Justin M. Forbes 45e84a
+            .driver   = "virtio-balloon-pci",
Justin M. Forbes 45e84a
+            .property = "event_idx",
Justin M. Forbes 45e84a
+            .value    = "off",
Justin M. Forbes 45e84a
+        },{
Justin M. Forbes 45e84a
             .driver   = "AC97",
Justin M. Forbes 45e84a
             .property = "use_broken_id",
Justin M. Forbes 45e84a
             .value    = stringify(1),
Justin M. Forbes 45e84a
@@ -415,6 +435,10 @@ static QEMUMachine pc_machine_v0_12 = {
Justin M. Forbes 45e84a
             .property = "event_idx",
Justin M. Forbes 45e84a
             .value    = "off",
Justin M. Forbes 45e84a
         },{
Justin M. Forbes 45e84a
+            .driver   = "virtio-balloon-pci",
Justin M. Forbes 45e84a
+            .property = "event_idx",
Justin M. Forbes 45e84a
+            .value    = "off",
Justin M. Forbes 45e84a
+        },{
Justin M. Forbes 45e84a
             .driver   = "AC97",
Justin M. Forbes 45e84a
             .property = "use_broken_id",
Justin M. Forbes 45e84a
             .value    = stringify(1),
Justin M. Forbes 45e84a
@@ -470,6 +494,10 @@ static QEMUMachine pc_machine_v0_11 = {
Justin M. Forbes 45e84a
             .property = "event_idx",
Justin M. Forbes 45e84a
             .value    = "off",
Justin M. Forbes 45e84a
         },{
Justin M. Forbes 45e84a
+            .driver   = "virtio-balloon-pci",
Justin M. Forbes 45e84a
+            .property = "event_idx",
Justin M. Forbes 45e84a
+            .value    = "off",
Justin M. Forbes 45e84a
+        },{
Justin M. Forbes 45e84a
             .driver   = "AC97",
Justin M. Forbes 45e84a
             .property = "use_broken_id",
Justin M. Forbes 45e84a
             .value    = stringify(1),
Justin M. Forbes 45e84a
@@ -537,6 +565,10 @@ static QEMUMachine pc_machine_v0_10 = {
Justin M. Forbes 45e84a
             .property = "event_idx",
Justin M. Forbes 45e84a
             .value    = "off",
Justin M. Forbes 45e84a
         },{
Justin M. Forbes 45e84a
+            .driver   = "virtio-balloon-pci",
Justin M. Forbes 45e84a
+            .property = "event_idx",
Justin M. Forbes 45e84a
+            .value    = "off",
Justin M. Forbes 45e84a
+        },{
Justin M. Forbes 45e84a
             .driver   = "AC97",
Justin M. Forbes 45e84a
             .property = "use_broken_id",
Justin M. Forbes 45e84a
             .value    = stringify(1),
Justin M. Forbes 45e84a
-- 
Justin M. Forbes 45e84a
1.7.7.5
Justin M. Forbes 45e84a