diff options
author | Peter Xu <peterx@redhat.com> | 2016-07-14 13:56:33 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-07-21 20:44:19 +0300 |
commit | 3f1fea0fb5bfd78ede2ceae5dae0b24c0380f423 (patch) | |
tree | 949a85390e8f549a00e49fa0bd3c11334094cec8 /hw/virtio/virtio-pci.c | |
parent | e1d4fb2de594ab0cbe78846bc79617b9bd50c867 (diff) | |
download | qemu-3f1fea0fb5bfd78ede2ceae5dae0b24c0380f423.zip qemu-3f1fea0fb5bfd78ede2ceae5dae0b24c0380f423.tar.gz qemu-3f1fea0fb5bfd78ede2ceae5dae0b24c0380f423.tar.bz2 |
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 'hw/virtio/virtio-pci.c')
-rw-r--r-- | hw/virtio/virtio-pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c index cbdfd59..f0677b7 100644 --- a/hw/virtio/virtio-pci.c +++ b/hw/virtio/virtio-pci.c @@ -842,6 +842,7 @@ static int virtio_pci_vq_vector_unmask(VirtIOPCIProxy *proxy, if (ret < 0) { return ret; } + kvm_irqchip_commit_routes(kvm_state); } } |