diff options
author | Longpeng(Mike) <longpeng2@huawei.com> | 2022-02-22 22:11:16 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-03-15 11:26:20 +0100 |
commit | def4c5570c44cc775c47e6d8503e4d12868f53aa (patch) | |
tree | b880ea2ed1c6c7e15a9ccb020f083806ed65e63d /accel/stubs | |
parent | 9568690868e2bcd8e35e449ac5013ca1d08968ac (diff) | |
download | qemu-def4c5570c44cc775c47e6d8503e4d12868f53aa.zip qemu-def4c5570c44cc775c47e6d8503e4d12868f53aa.tar.gz qemu-def4c5570c44cc775c47e6d8503e4d12868f53aa.tar.bz2 |
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>
Diffstat (limited to 'accel/stubs')
-rw-r--r-- | accel/stubs/kvm-stub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel/stubs/kvm-stub.c b/accel/stubs/kvm-stub.c index 7e0fb88..3345882 100644 --- a/accel/stubs/kvm-stub.c +++ b/accel/stubs/kvm-stub.c @@ -77,7 +77,7 @@ int kvm_on_sigbus(int code, void *addr) return 1; } -int kvm_irqchip_add_msi_route(KVMState *s, int vector, PCIDevice *dev) +int kvm_irqchip_add_msi_route(KVMRouteChange *c, int vector, PCIDevice *dev) { return -ENOSYS; } |