Skip to content

vfio-pci cleanup and fixes

Alex Williamson qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11vfio-pci: Update slow path INTx algorithmhw/vfio_pci.c hw/vfio_pci_int.h+44 -250 replies
2/11vfio-pci: Re-order map/unmaphw/vfio_pci.c+18 -180 replies
3/11vfio-pci: Unmap and retry DMA mappinghw/vfio_pci.c+11 -40 replies
4/11vfio-pci: Rework MSIX setup/teardownhw/vfio_pci.c+55 -530 replies
5/11vfio-pci: No spurious MSIshw/vfio_pci.c+0 -150 replies
6/11vfio-pci: Roll the header into the .c filehw/vfio_pci.c hw/vfio_pci_int.h+96 -1150 replies
7/11vfio-pci: Don't peak at msi_supportedhw/vfio_pci.c+6 -160 replies
8/11vfio-pci: Use uintptr_t for void* casthw/vfio_pci.c+1 -10 replies
9/11vfio-pci: Remove setting of MSI qsizehw/vfio_pci.c+0 -180 replies
10/11vfio-pci: Extend resethw/vfio_pci.c+22 -70 replies
11/11vfio-pci: Cleanup on INTx setup failurehw/vfio_pci.c+2 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/11] vfio-pci cleanup and fixes

I've been accumulating a backlog of vfio-pci changes while we've been getting the first implementation accepted. This series includes a new algorithm for dealing with INTx that should avoid users needing to know about experimental parameters, a re-try mechanism for mappings that avoids common errors users might see trying to use vfio-pci, a rework of MSIX setup and teardown that fixes a corner case for MSIX being enabled but not used, a more robust device reset that re-inits interrupts much like pci-assign, a missing INTx setup failure cleanup, and addresses a few comments collected during initial review.

Comments welcome. If there are no changes or objections I'll send a pull request for this next week. Thanks,

Alex

---

Alex Williamson (11):
vfio-pci: Cleanup on INTx setup failure
vfio-pci: Extend reset
vfio-pci: Remove setting of MSI qsize
vfio-pci: Use uintptr_t for void* cast
vfio-pci: Don't peak at msi_supported
vfio-pci: Roll the header into the .c file
vfio-pci: No spurious MSIs
vfio-pci: Rework MSIX setup/teardown
vfio-pci: Unmap and retry DMA mapping
vfio-pci: Re-order map/unmap
vfio-pci: Update slow path INTx algorithm

 hw/vfio_pci.c     |  395 +++++++++++++++++++++++++++++++++--------------------
 hw/vfio_pci_int.h |  114 ---------------
 2 files changed, 246 insertions(+), 263 deletions(-)
 delete mode 100644 hw/vfio_pci_int.h