Skip to content

vfio-pci: Misc enhancements

Alex Williamson kvm linux-pci lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v15 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Incorporate comments from Bandan and Bjorn for vfio-pci.ids option
- Include necessary vgaarb change, already Ack'd by Dave
- Rebase on top of my current next branch
- Rename D3 disable parameter

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6vgaarb: Stub vga_set_legacy_decoding()include/linux/vgaarb.h+5 -00 replies
2/6vfio-pci: Add module option to disable VGA region accessdrivers/vfio/pci/vfio_pci.c+16 -30 replies
3/6vfio-pci: Add VGA arbiter clientdrivers/vfio/pci/vfio_pci.c+63 -40 replies
4/6vfio-pci: Allow PCI IDs to be specified as module optionsdrivers/vfio/pci/vfio_pci.c+49 -00 replies
5/6vfio-pci: Remove warning if try-reset failsdrivers/vfio/pci/vfio_pci.c+2 -80 replies
6/6vfio-pci: Move idle devices to D3hot power statedrivers/vfio/pci/vfio_pci.c+33 -30 replies

Reviews trailers per patch

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

PatchDave Airlie
1/6A-b
2/6
3/6
4/6
5/6
6/6

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

Read the v2 thread

Cover letter [PATCH v2 0/6] vfio-pci: Misc enhancements

v2:
- Incorporate comments from Bandan and Bjorn for vfio-pci.ids option
- Include necessary vgaarb change, already Ack'd by Dave
- Rebase on top of my current next branch
- Rename D3 disable parameter

There are really 3 separate features added in this series, the first is to opt-out VGA devices from VGA arbitration if a) vfio VGA support is disable, either via config or module optioni (new), and b) bridge control of VGA resource routing is possible. This means that if multiple VGA devices are installed with the intention of using them for device assignment without VGA, we can eliminate the effect they have on host graphics.

The second feature is the addition of the "ids" module option, which acts just like the option of the same name on pci-stub. This makes it easier to configure vfio-pci to statically claim certain devices. By either building vfio support into the kernel or using softdeps to load vfio-pci before native drivers, this can make it much easier to bind to devices which are only intended to be used through vfio, such as those additional graphics cards.

Finally, when devices are bound to vfio-pci and unused, we can try to put them into a low-power state. This again feeds into that idea that devices may be installed on the system only for use through vfio, and that use may not be continuous. This saves a few watts for some GPUs. Thanks,

Alex

---

Alex Williamson (6):
vgaarb: Stub vga_set_legacy_decoding()
vfio-pci: Add module option to disable VGA region access
vfio-pci: Add VGA arbiter client
vfio-pci: Allow PCI IDs to be specified as module options
vfio-pci: Remove warning if try-reset fails
vfio-pci: Move idle devices to D3hot power state

 drivers/vfio/pci/vfio_pci.c |  179 +++++++++++++++++++++++++++++++++++++++----
 include/linux/vgaarb.h      |    5 +
 2 files changed, 167 insertions(+), 17 deletions(-)