Skip to content

RFC Add vGPU support

Kirti Wankhede kvm qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 RFC Latest3 patches 74 repliesIn review
  2. v2 RFC3 patches 16 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vGPU Core driverdrivers/Kconfig drivers/Makefile drivers/vgpu/Kconfig +6 more+1205 -015 replies
2/3VFIO driver for vGPU devicedrivers/vgpu/Makefile drivers/vgpu/vgpu_vfio.c+672 -011 replies
3/3VFIO Type1 IOMMU change: to support with iommu and without iommudrivers/vfio/vfio_iommu_type1.c include/linux/vfio.h include/linux/vgpu.h+403 -3445 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [RFC PATCH v3 0/3] Add vGPU support

This series adds vGPU support to v4.6 Linux host kernel. Purpose of this series is to provide a common interface for vGPU management that can be used by different GPU drivers. This series introduces vGPU core module that create and manage vGPU devices, VFIO based driver for vGPU devices that are created by vGPU core module and update VFIO type1 IOMMU module to support vGPU devices.

What's new in v3?
VFIO type1 IOMMU module supports devices which are IOMMU capable. This version of patched adds support for vGPU devices, which are not IOMMU capable, to use existing VFIO IOMMU module. VFIO Type1 IOMMU patch provide new set of APIs for guest page translation.

What's left to do?
VFIO driver for vGPU device doesn't support devices with MSI-X enabled.

Please review.

Thanks,
Kirti

Kirti Wankhede (3):
vGPU Core driver
VFIO driver for vGPU device
VFIO Type1 IOMMU change: to support with iommu and without iommu

 drivers/Kconfig                 |    2 +
 drivers/Makefile                |    1 +
 drivers/vfio/vfio_iommu_type1.c |  427 +++++++++++++++++++++++--
 drivers/vgpu/Kconfig            |   21 ++
 drivers/vgpu/Makefile           |    5 +
 drivers/vgpu/vgpu-core.c        |  424 ++++++++++++++++++++++++
 drivers/vgpu/vgpu-driver.c      |  136 ++++++++
 drivers/vgpu/vgpu-sysfs.c       |  365 +++++++++++++++++++++
 drivers/vgpu/vgpu_private.h     |   36 ++
 drivers/vgpu/vgpu_vfio.c        |  671 +++++++++++++++++++++++++++++++++++++++
 include/linux/vfio.h            |    6 +
 include/linux/vgpu.h            |  216 +++++++++++++
 12 files changed, 2278 insertions(+), 32 deletions(-)
 create mode 100644 drivers/vgpu/Kconfig
 create mode 100644 drivers/vgpu/Makefile
 create mode 100644 drivers/vgpu/vgpu-core.c
 create mode 100644 drivers/vgpu/vgpu-driver.c
 create mode 100644 drivers/vgpu/vgpu-sysfs.c
 create mode 100644 drivers/vgpu/vgpu_private.h
 create mode 100644 drivers/vgpu/vgpu_vfio.c
 create mode 100644 include/linux/vgpu.h