summary refs log tree commit diff stats
path: root/hw/pc_piix.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-05-17 10:32:35 -0300
committerAvi Kivity <avi@redhat.com>2012-05-21 19:22:49 +0300
commite7b2030862f63ee02331940b9f1742cd025c1908 (patch)
tree0e90e3c833df6e435e288c623cf53e429b5623a3 /hw/pc_piix.c
parent1e2aa8be09184156f438ba5199eaa12190c39acc (diff)
downloadfocaccia-qemu-e7b2030862f63ee02331940b9f1742cd025c1908.tar.gz
focaccia-qemu-e7b2030862f63ee02331940b9f1742cd025c1908.zip
kvm: Make kvm_irqchip_commit_routes an internal service
Automatically commit route changes after kvm_add_routing_entry and
kvm_irqchip_release_virq. There is no performance relevant use case for
which collecting multiple route changes is beneficial. This makes
kvm_irqchip_commit_routes an internal service which assert()s that the
corresponding IOCTL will always succeed.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'hw/pc_piix.c')
-rw-r--r--hw/pc_piix.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/pc_piix.c b/hw/pc_piix.c
index c17f906f2d..044dfcb377 100644
--- a/hw/pc_piix.c
+++ b/hw/pc_piix.c
@@ -56,7 +56,7 @@ static void kvm_piix3_setup_irq_routing(bool pci_enabled)
 {
 #ifdef CONFIG_KVM
     KVMState *s = kvm_state;
-    int ret, i;
+    int i;
 
     if (kvm_check_extension(s, KVM_CAP_IRQ_ROUTING)) {
         for (i = 0; i < 8; ++i) {
@@ -77,10 +77,6 @@ static void kvm_piix3_setup_irq_routing(bool pci_enabled)
                 }
             }
         }
-        ret = kvm_irqchip_commit_routes(s);
-        if (ret < 0) {
-            hw_error("KVM IRQ routing setup failed");
-        }
     }
 #endif /* CONFIG_KVM */
 }