summaryrefslogtreecommitdiffstats
path: root/target-i386/kvm.c
diff options
context:
space:
mode:
authorPeter Xu2016-07-14 07:56:33 +0200
committerMichael S. Tsirkin2016-07-21 19:44:19 +0200
commit3f1fea0fb5bfd78ede2ceae5dae0b24c0380f423 (patch)
tree949a85390e8f549a00e49fa0bd3c11334094cec8 /target-i386/kvm.c
parentkvm-irqchip: x86: add msi route notify fn (diff)
downloadqemu-3f1fea0fb5bfd78ede2ceae5dae0b24c0380f423.tar.gz
qemu-3f1fea0fb5bfd78ede2ceae5dae0b24c0380f423.tar.xz
qemu-3f1fea0fb5bfd78ede2ceae5dae0b24c0380f423.zip
kvm-irqchip: do explicit commit when update irq
In the past, we are doing gsi route commit for each irqchip route update. This is not efficient if we are updating lots of routes in the same time. This patch removes the committing phase in kvm_irqchip_update_msi_route(). Instead, we do explicit commit after all routes updated. Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'target-i386/kvm.c')
-rw-r--r--target-i386/kvm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 61f57f9f20..0a09be656e 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -3427,6 +3427,7 @@ static void kvm_update_msi_routes_all(void *private, bool global,
kvm_irqchip_update_msi_route(kvm_state, entry->virq,
msg, entry->dev);
}
+ kvm_irqchip_commit_routes(kvm_state);
trace_kvm_x86_update_msi_routes(cnt);
}