When we add new adapter routes we call kvm_irqchip_add_route() for every virtqueue and in the same step also do the KVM_SET_GSI_ROUTING ioctl. This is unnecessary costly as the interface allows us to set multiple routes in one go. Let's first add all routes to the table stored in the global kvm_state and then do the ioctl to commit the routes to the in-kernel irqchip. This saves us several ioctls to the kernel where for each call a list is reallocated and populated. Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com> Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> |
||
---|---|---|
.. | ||
allwinner-a10-pic.c | ||
apic.c | ||
apic_common.c | ||
arm_gic.c | ||
arm_gic_common.c | ||
arm_gic_kvm.c | ||
arm_gicv2m.c | ||
armv7m_nvic.c | ||
etraxfs_pic.c | ||
exynos4210_combiner.c | ||
exynos4210_gic.c | ||
gic_internal.h | ||
grlib_irqmp.c | ||
heathrow_pic.c | ||
i8259.c | ||
i8259_common.c | ||
imx_avic.c | ||
ioapic.c | ||
ioapic_common.c | ||
lm32_pic.c | ||
Makefile.objs | ||
omap_intc.c | ||
openpic.c | ||
openpic_kvm.c | ||
pl190.c | ||
puv3_intc.c | ||
realview_gic.c | ||
s390_flic.c | ||
s390_flic_kvm.c | ||
sh_intc.c | ||
slavio_intctl.c | ||
xics.c | ||
xics_kvm.c | ||
xilinx_intc.c |