kvm-irqchip: introduce new API to support route change
commit9568690868e2bcd8e35e449ac5013ca1d08968ac
authorLongpeng(Mike) <longpeng2@huawei.com>
Tue, 22 Feb 2022 14:11:15 +0000 (22 22:11 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Mar 2022 10:26:20 +0000 (15 11:26 +0100)
tree4cf77bb880077e2c52cf1bee2e1cef24762770dd
parenta6a7ebc81756455f592db89cbb6b0a56f9567554
kvm-irqchip: introduce new API to support route change

Paolo suggested adding the new API to support route changes [1]. We should invoke
kvm_irqchip_begin_route_changes() before changing the routes, increasing the
KVMRouteChange.changes if the routes are changed, and commit the changes at last.

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

Signed-off-by: Longpeng <longpeng2@huawei.com>
Message-Id: <20220222141116.2091-2-longpeng2@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/sysemu/kvm.h