]> git.proxmox.com Git - mirror_qemu.git/commit - kvm-all.c
KVM: PIC: Only commit irq routing when necessary
authorAlexander Graf <agraf@suse.de>
Tue, 16 Apr 2013 23:11:55 +0000 (01:11 +0200)
committerAlexander Graf <agraf@suse.de>
Sun, 30 Jun 2013 23:11:14 +0000 (01:11 +0200)
commitcb925cf9230f77c096dae4b159a9449bc306256c
tree0c59a9c212bbb7683898adbd4eb44b36f1ae4d12
parent82fc73b65c19fed0ee28aeb655d27de5ac9e78d5
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>
hw/i386/kvm/ioapic.c
include/sysemu/kvm.h
kvm-all.c