Skip to content

vfio: Prep for vGPU & IGD

Alex Williamson qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6vfio: Add sysfsdev property for pci & platformhw/vfio/pci.c hw/vfio/platform.c include/hw/vfio/vfio-common.h+86 -1000 replies
2/6vfio: Wrap VFIO_DEVICE_GET_REGION_INFOhw/vfio/common.c hw/vfio/pci.c hw/vfio/platform.c +1 more+69 -460 replies
3/6vfio: Generalize region supporthw/arm/sysbus-fdt.c hw/vfio/common.c hw/vfio/pci-quirks.c +4 more+283 -1900 replies
4/6vfio/pci: Convert all MemoryRegion to dynamic alloc and consistent functionshw/vfio/pci-quirks.c hw/vfio/pci.c hw/vfio/pci.h+71 -910 replies
5/6vfio/pci: Fixup PCI option ROMshw/vfio/pci.c+30 -00 replies
6/6vfio/pci: Split out VGA setuphw/vfio/pci.c hw/vfio/pci.h+50 -340 replies

Reviews trailers per patch

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

PatchEric Auger
1/6T-b R-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 v1 thread

Cover letter [Qemu-devel] [PATCH 0/6] vfio: Prep for vGPU & IGD

Some of these have been posted as RFC several times, the primary purpose here is preparation for vGPU and IGD support. This includes methods of specifying a device other than a PCI bus address, as vGPUs are not likely to be discrete or even SR-IOV VF-like devices. We also work on the abstraction of memory regions because we expect vGPUs may take advantage of regions with sparse mmaps (ie. part of the region is direct access while part is trapped for emulation). We can also immediatley apply these changes to cleanup the additional memory regions we use when MSI-X does this implicitly. This also helps to generalize regions for the addition of device specific regions where IGD assignment exposes additional information through an OpRegion as well as information about the PCI host bridge and ISA bridge of the physical system. With IGD assignment we also have a need to fixup ROM images, which also translates to "soft-modding" of assigned devices, allowing the ROM to automatically match the device. Finally we split out the VGA setup such that we can later enable it automatically in device specific cases.

We rely on vfio kernel changes to fully enable some of these features, but I think these patches stand on their own sufficiently to propose them now. Thanks,

Alex

---

Alex Williamson (6):
vfio: Add sysfsdev property for pci & platform
vfio: Wrap VFIO_DEVICE_GET_REGION_INFO
vfio: Generalize region support
vfio/pci: Convert all MemoryRegion to dynamic alloc and consistent functions vfio/pci: Fixup PCI option ROMs
vfio/pci: Split out VGA setup

 hw/arm/sysbus-fdt.c           |    4 
 hw/vfio/common.c              |  190 +++++++++++++--
 hw/vfio/pci-quirks.c          |   62 ++---
 hw/vfio/pci.c                 |  525 +++++++++++++++++++++--------------------
 hw/vfio/pci.h                 |   12 +
 hw/vfio/platform.c            |  126 ++++------
 include/hw/vfio/vfio-common.h |   27 ++
 trace-events                  |   10 +
 8 files changed, 542 insertions(+), 414 deletions(-)