Skip to content

RFC vfio: ioeventfd support

Alex Williamson kvm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5vfio/quirks: Add common quirk alloc helperhw/vfio/pci-quirks.c+21 -272 replies
2/5vfio/quirks: Add generic support for ioveventfdshw/vfio/pci-quirks.c hw/vfio/pci.h+28 -03 replies
3/5vfio/quirks: Automatic ioeventfd enabling for NVIDIA BAR0 quirkshw/vfio/pci-quirks.c hw/vfio/pci.h+89 -24 replies
4/5vfio: Update linux headerlinux-headers/linux/vfio.h+24 -00 replies
5/5vfio/quirks: Enable ioeventfd quirks to be handled by vfio directlyhw/vfio/pci-quirks.c+36 -65 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchEric Auger
1/5R-b
2/5
3/5
4/5
5/5

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

Read the v1 thread

Cover letter [RFC PATCH 0/5] vfio: ioeventfd support

For the matching kernel patch, see:

https://lkml.org/lkml/2018/2/6/866

This series enables ioeventfd support and makes use of a proposed vfio kernel ioeventfd interface for accelerating high frequency writes through to the device. In the specific case addressed, the writes are to a range of MMIO space virtualized in QEMU for NVIDIA GeForce support, but which also hosts a register which is used to allow the MSI interrupt for the device to re-trigger. Applications which generate a very high interrupt rate on the GPU can see noticeable overhead as a result of this trap through QEMU. We added an option for users to disable these quirks entirely for non-Geforce cards[1] for optimal performance, but for GeForce users and users that can't tweak their VM config, this gets us to within 95% of that performance for an interrupt intensive micro-benchmark (from 83%). I'd be interested in more typical benchmark results to understand if there's an improvement there as well. Thanks,

Alex

[1] https://lists.gnu.org/archive/html/qemu-devel/2018-01/msg06878.html

---

Alex Williamson (5):
vfio/quirks: Add common quirk alloc helper
vfio/quirks: Add generic support for ioveventfds vfio/quirks: Automatic ioeventfd enabling for NVIDIA BAR0 quirks
vfio: Update linux header
vfio/quirks: Enable ioeventfd quirks to be handled by vfio directly

 hw/vfio/pci-quirks.c       |  184 +++++++++++++++++++++++++++++++++++++-------
 hw/vfio/pci.h              |   13 +++
 linux-headers/linux/vfio.h |   24 ++++++
 3 files changed, 192 insertions(+), 29 deletions(-)