Skip to content

vfio-pci: Allow mmap of MSIX BAR

Alexey Kardashevskiy qemu-devel 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest4 patches 27 repliesIn review
  2. v6 RFC1 patch 2 repliesSuperseded
  3. v52 patches 1 replySuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v41 patch4 repliesSuperseded
v31 patch6 repliesSuperseded
v21 patch18 repliesSuperseded
v11 patch9 repliesSuperseded

Changes in v7 from the cover letter

* split into many patches
* test iova/llsize against pgmask in vfio_listener_region_add/del
* s/vfio_is_cap_present/vfio_has_region_cap/
* added comments here and there
* s/vdev->msix->table_bar/region->nr/

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4linux-headers: update to f1517df8701cinclude/standard-headers/linux/input-event-codes.h include/standard-headers/linux/input.h include/standard-headers/linux/pci_regs.h +6 more+126 -4111 reply
2/4vfio/pci: Relax DMA map errors for MMIO regionshw/vfio/common.c+49 -624 replies
3/4vfio-pci: Allow mmap of MSIX BARhw/vfio/common.c hw/vfio/pci.c include/hw/vfio/vfio-common.h+25 -01 reply
4/4ppc/spapr, vfio: Turn off MSIX emulation for VFIO deviceshw/ppc/spapr.c hw/vfio/pci.c+20 -01 reply

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchDavid Gibson
1/4R-b
2/4
3/4R-b
4/4Reivewed-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [Qemu-devel] [PATCH qemu v7 0/4] vfio-pci: Allow mmap of MSIX BAR

Here is my latest patchset to allow mapping of MSIX BAR to the guest in order to accelerate MMIO on certains devices.

This is based on sha1
008a51b Peter Maydell "Merge remote-tracking branch 'remotes/famz/tags/staging-pull-request' into staging".

Please comment. Thanks.

Changes:
v7:
* split into many patches
* test iova/llsize against pgmask in vfio_listener_region_add/del
* s/vfio_is_cap_present/vfio_has_region_cap/
* added comments here and there
* s/vdev->msix->table_bar/region->nr/

Alexey Kardashevskiy (4):
linux-headers: update to f1517df8701c
vfio/pci: Relax DMA map errors for MMIO regions
vfio-pci: Allow mmap of MSIX BAR
ppc/spapr, vfio: Turn off MSIX emulation for VFIO devices

 include/hw/vfio/vfio-common.h                      |   1 +
 include/standard-headers/linux/input-event-codes.h |   1 +
 include/standard-headers/linux/input.h             |  11 +
 include/standard-headers/linux/pci_regs.h          |  30 +-
 include/standard-headers/linux/virtio_balloon.h    |   3 +-
 include/standard-headers/linux/virtio_net.h        |  13 +
 linux-headers/asm-powerpc/unistd.h                 |   3 +
 linux-headers/asm-s390/unistd.h                    | 401 +--------------------
 linux-headers/linux/psci.h                         |   3 +
 linux-headers/linux/vfio.h                         |  72 ++++
 hw/ppc/spapr.c                                     |   7 +
 hw/vfio/common.c                                   |  70 +++-
 hw/vfio/pci.c                                      |  22 ++
 13 files changed, 220 insertions(+), 417 deletions(-)
Signature · 1 line
2.11.0