]> git.proxmox.com Git - mirror_qemu.git/commit - hw/vfio/pci.c
kvm/msi: do explicit commit when adding msi routes
authorLongpeng(Mike) <longpeng2@huawei.com>
Tue, 22 Feb 2022 14:11:16 +0000 (22:11 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Mar 2022 10:26:20 +0000 (11:26 +0100)
commitdef4c5570c44cc775c47e6d8503e4d12868f53aa
treeb880ea2ed1c6c7e15a9ccb020f083806ed65e63d
parent9568690868e2bcd8e35e449ac5013ca1d08968ac
kvm/msi: do explicit commit when adding msi routes

We invoke the kvm_irqchip_commit_routes() for each addition to MSI route
table, which is not efficient if we are adding lots of routes in some cases.

This patch lets callers invoke the kvm_irqchip_commit_routes(), so the
callers can decide how to optimize.

[1] https://lists.gnu.org/archive/html/qemu-devel/2021-11/msg00967.html

Signed-off-by: Longpeng <longpeng2@huawei.com>
Message-Id: <20220222141116.2091-3-longpeng2@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/kvm/kvm-all.c
accel/stubs/kvm-stub.c
hw/misc/ivshmem.c
hw/vfio/pci.c
hw/virtio/virtio-pci.c
include/sysemu/kvm.h
target/i386/kvm/kvm.c