Skip to content

RFC MSI affinity for assigned devices

Alex Williamson kvm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4kvm: Stub kvm_irqchip_update_msi_routekvm-all.c kvm-stub.c+10 -00 replies
2/4vfio-pci: Add support for MSI affinityhw/vfio_pci.c+28 -30 replies
3/4pci-assign: Refactor MSI virq arrayhw/kvm/pci-assign.c+26 -250 replies
4/4pci-assign: Add MSI affinity supporthw/kvm/pci-assign.c+29 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/4] MSI affinity for assigned devices

This is post-1.3 material, so I'll just post it as an RFC for now.

MSI routing updates aren't currently handled by pci-assign or vfio-pci (when using KVM acceleration), which means that trying to set interrupt SMP affinity in the guest has no effect unless MSI is completely disabled and re-enabled. This series fixes this for both device assignment backends using similar schemes. We store the last MSIMessage programmed to KVM and do updates to the MSI route when it changes. pci-assign takes a little bit of refactoring to make this happen cleanly. Thanks,

Alex

---

Alex Williamson (4):
kvm: Stub kvm_irqchip_update_msi_route
vfio-pci: Add support for MSI affinity
pci-assign: Refactor MSI virq array
pci-assign: Add MSI affinity support

 hw/kvm/pci-assign.c |   80 +++++++++++++++++++++++++++++++++++----------------
 hw/vfio_pci.c       |   31 ++++++++++++++++++--
 kvm-all.c           |    5 +++
 kvm-stub.c          |    5 +++
 4 files changed, 93 insertions(+), 28 deletions(-)