diff options
author | Alexander Graf <agraf@suse.de> | 2013-04-17 01:11:55 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2013-07-01 01:11:14 +0200 |
commit | cb925cf9230f77c096dae4b159a9449bc306256c (patch) | |
tree | 0c59a9c212bbb7683898adbd4eb44b36f1ae4d12 /hw | |
parent | 82fc73b65c19fed0ee28aeb655d27de5ac9e78d5 (diff) |
KVM: PIC: Only commit irq routing when necessary
The current logic updates KVM's view of our interrupt map every time we
change it. While this is nice and bullet proof, it slows things down
badly for me. QEMU spends about 3 seconds on every start telling KVM what
news it has on its routing maps.
Instead, let's just synchronize the whole irq routing map as a whole when
we're done constructing it. For things that change during runtime, we can
still update the routing table on demand.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/i386/kvm/ioapic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/kvm/ioapic.c b/hw/i386/kvm/ioapic.c index a3bd519b4d..abfac3da7a 100644 --- a/hw/i386/kvm/ioapic.c +++ b/hw/i386/kvm/ioapic.c @@ -40,6 +40,7 @@ void kvm_pc_setup_irq_routing(bool pci_enabled) } } } + kvm_irqchip_commit_routes(s); } } |