diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-05-17 10:32:35 -0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-05-21 19:22:49 +0300 |
commit | e7b2030862f63ee02331940b9f1742cd025c1908 (patch) | |
tree | 0e90e3c833df6e435e288c623cf53e429b5623a3 /hw/pc_piix.c | |
parent | 1e2aa8be09184156f438ba5199eaa12190c39acc (diff) | |
download | qemu-e7b2030862f63ee02331940b9f1742cd025c1908.zip qemu-e7b2030862f63ee02331940b9f1742cd025c1908.tar.gz qemu-e7b2030862f63ee02331940b9f1742cd025c1908.tar.bz2 |
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.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/pc_piix.c b/hw/pc_piix.c index c17f906..044dfcb 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 */ } |