mbox series

[resend,0/2] kvm/msi: do explicit commit when adding msi routes

Message ID 20220222141116.2091-1-longpeng2@huawei.com (mailing list archive)
Headers show
Series kvm/msi: do explicit commit when adding msi routes | expand

Message

Denis V. Lunev" via Feb. 22, 2022, 2:11 p.m. UTC
From: Longpeng <longpeng2@huawei.com>

This patchset moves the call to kvm_irqchip_commit_routes() out of
kvm_irqchip_add_msi_route(). An optimization of vfio migration [1]
depends on this changes.

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

Longpeng (Mike) (2):
  kvm-irqchip: introduce new API to support route change
  kvm/msi: do explicit commit when adding msi routes

 accel/kvm/kvm-all.c    |  7 ++++---
 accel/stubs/kvm-stub.c |  2 +-
 hw/misc/ivshmem.c      |  5 ++++-
 hw/vfio/pci.c          |  5 ++++-
 hw/virtio/virtio-pci.c |  4 +++-
 include/sysemu/kvm.h   | 23 +++++++++++++++++++++--
 target/i386/kvm/kvm.c  |  4 +++-
 7 files changed, 40 insertions(+), 10 deletions(-)

Comments

Paolo Bonzini Feb. 23, 2022, 9:14 a.m. UTC | #1
On 2/22/22 15:11, Longpeng(Mike) via wrote:
> From: Longpeng <longpeng2@huawei.com>
> 
> This patchset moves the call to kvm_irqchip_commit_routes() out of
> kvm_irqchip_add_msi_route(). An optimization of vfio migration [1]
> depends on this changes.
> 
> [1] https://lists.gnu.org/archive/html/qemu-devel/2021-11/msg00968.html
> 
> Longpeng (Mike) (2):
>    kvm-irqchip: introduce new API to support route change
>    kvm/msi: do explicit commit when adding msi routes
> 
>   accel/kvm/kvm-all.c    |  7 ++++---
>   accel/stubs/kvm-stub.c |  2 +-
>   hw/misc/ivshmem.c      |  5 ++++-
>   hw/vfio/pci.c          |  5 ++++-
>   hw/virtio/virtio-pci.c |  4 +++-
>   include/sysemu/kvm.h   | 23 +++++++++++++++++++++--
>   target/i386/kvm/kvm.c  |  4 +++-
>   7 files changed, 40 insertions(+), 10 deletions(-)
> 

Queued, thanks.

Paolo