Skip to content

pci-assign: better MSI-X table support

Alex Williamson kvm 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 7 repliesApplied
  2. v19 patches 44 repliesSuperseded

Changes in v2 from the cover letter

- Dropping mem64, we can work on this elsewhere
- Fixed MemoryRegionOps to use .valid, tested 8-byte access
- Endian conversions when testing MSI-X vector mask bit
- Patch description updates
- Misc cleanups

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8pci-assign: Fix warnings with DEBUG enabledhw/device-assignment.c+4 -40 replies
2/8pci-assign: Update MSI-X MMIO to Memory APIhw/device-assignment.c+19 -410 replies
3/8pci-assign: Use struct for MSI-X tablehw/device-assignment.c hw/device-assignment.h+33 -310 replies
4/8pci-assign: Only calculate maximum MSI-X vector entries oncehw/device-assignment.c hw/device-assignment.h+8 -100 replies
5/8pci-assign: Proper initialization for MSI-X tablehw/device-assignment.c+19 -10 replies
6/8pci-assign: Allocate entries for all MSI-X vectorshw/device-assignment.c+22 -220 replies
7/8pci-assign: Use MSIX_PAGE_SIZEhw/device-assignment.c+3 -30 replies
8/8pci-assign: Update MSI-X config based on table writeshw/device-assignment.c+81 -116 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/8] pci-assign: better MSI-X table support

This series enables better runtime MSI-X table support so that we can track vector updates for routing, enabling guest interrupt smp_affinity, as well as vectors setup after the MSI-X PCI capability is enabled, allowing for MSI-X on devices assigned to FreeBSD guests. Thanks,

Alex

v2:
- Dropping mem64, we can work on this elsewhere
- Fixed MemoryRegionOps to use .valid, tested 8-byte access
- Endian conversions when testing MSI-X vector mask bit
- Patch description updates
- Misc cleanups

---

Alex Williamson (8):
pci-assign: Update MSI-X config based on table writes
pci-assign: Use MSIX_PAGE_SIZE
pci-assign: Allocate entries for all MSI-X vectors
pci-assign: Proper initialization for MSI-X table
pci-assign: Only calculate maximum MSI-X vector entries once
pci-assign: Use struct for MSI-X table
pci-assign: Update MSI-X MMIO to Memory API
pci-assign: Fix warnings with DEBUG enabled

 hw/device-assignment.c |  262 +++++++++++++++++++++++++++++-------------------
 hw/device-assignment.h |   10 ++
 2 files changed, 169 insertions(+), 103 deletions(-)