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

Longpeng(Mike) via posted 2 patches 2 years, 2 months ago
Test checkpatch failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220222141116.2091-1-longpeng2@huawei.com
Maintainers: Marcelo Tosatti <mtosatti@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Alex Williamson <alex.williamson@redhat.com>
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(-)
[PATCH resend 0/2] kvm/msi: do explicit commit when adding msi routes
Posted by Longpeng(Mike) via 2 years, 2 months ago
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(-)

-- 
2.23.0


Re: [PATCH resend 0/2] kvm/msi: do explicit commit when adding msi routes
Posted by Paolo Bonzini 2 years, 2 months ago
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