mbox series

[v1,0/3] virtio-pci: optimize set_guest_notifier

Message ID 20230228093937.2515-1-longpeng2@huawei.com (mailing list archive)
Headers show
Series virtio-pci: optimize set_guest_notifier | expand

Message

Xingtao Yao (Fujitsu)" via Feb. 28, 2023, 9:39 a.m. UTC
From: Longpeng <longpeng2@huawei.com>

This patchset optimizes the time-consuming operation in virtio_pci_set_guest_notifier,
especially for the vhost-vdpa migration, the time spend on set_guest_notifier can
reduce 87% in some cases.

Longpeng (Mike) (3):
  virtio-pci: submit msi route changes in batch
  kvm-irqchip: use KVMRouteChange API to update msi route
  virtio-pci: defer to commit kvm irq routing when enable msi/msix

 accel/kvm/kvm-all.c        |  10 +--
 accel/stubs/kvm-stub.c     |   2 +-
 hw/intc/ioapic.c           |   5 +-
 hw/misc/ivshmem.c          |   6 +-
 hw/vfio/pci.c              |   5 +-
 hw/virtio/virtio-pci.c     | 140 ++++++++++++++++++++++++++++++++-----
 include/hw/virtio/virtio.h |   1 +
 include/sysemu/kvm.h       |   2 +-
 target/i386/kvm/kvm.c      |   6 +-
 9 files changed, 145 insertions(+), 32 deletions(-)