Skip to content

RFC spapr_pci, vfio: NVIDIA V100 + P9 passthrough

Alexey Kardashevskiy qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7vfio/spapr: Fix indirect levels calculationhw/vfio/spapr.c hw/vfio/trace-events+3 -22 replies
2/7linux-header: Update for new capabilitiesinclude/standard-headers/drm/drm_fourcc.h include/standard-headers/linux/ethtool.h include/standard-headers/linux/input-event-codes.h +6 more+160 -120 replies
3/7pci: Move NVIDIA vendor id to the rest of idshw/vfio/pci-quirks.c include/hw/pci/pci_ids.h+2 -26 replies
4/7vfio/nvidia-v100: Disable VBIOS updatehw/vfio/pci-quirks.c hw/vfio/pci.c hw/vfio/pci.h +2 more+31 -01 reply
5/7spapr-iommu: Always advertise the maximum possible DMA window sizehw/ppc/spapr_rtas_ddw.c+3 -163 replies
6/7vfio: Make vfio_get_region_info_cap publichw/vfio/common.c include/hw/vfio/vfio-common.h+3 -10 replies
7/7spapr: Add NVLink2 pass through supporthw/ppc/spapr.c hw/ppc/spapr_pci.c hw/vfio/pci-quirks.c +5 more+408 -52 replies

Reviews trailers per patch

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

PatchDavid GibsonAlistair Francis
1/7
2/7
3/7R-b R-b
4/7
5/7
6/7
7/7

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 qemu RFC 0/7] spapr_pci, vfio: NVIDIA V100 + P9 passthrough

This is for passing through NVIDIA V100 GPUs on POWER9 systems. 22/22 has the details of hardware setup.

This implements a subdriver for NVIDIA V100 GPU with coherent memory and NPU/ATS support available in the POWER9 CPU. This also implements required platform support for both powernv (host) and pseries (guest) platforms.

This is pushed on github:
https://github.com/aik/linux/tree/nv2-stage4

QEMU bits are here (will post separately):
https://github.com/aik/qemu/tree/nv2-stage4

Skiboot bits are here (will post separately as well):
https://github.com/aik/skiboot/tree/nv2-stage4

Please comment. Thanks.

Alexey Kardashevskiy (7):
vfio/spapr: Fix indirect levels calculation
linux-header: Update for new capabilities
pci: Move NVIDIA vendor id to the rest of ids vfio/nvidia-v100: Disable VBIOS update
spapr-iommu: Always advertise the maximum possible DMA window size
vfio: Make vfio_get_region_info_cap public
spapr: Add NVLink2 pass through support

 hw/vfio/pci.h                                 |   3 +
 include/hw/pci-host/spapr.h                   |  28 ++
 include/hw/pci/pci_ids.h                      |   3 +
 include/hw/ppc/spapr.h                        |   3 +-
 include/hw/vfio/vfio-common.h                 |   2 +
 include/standard-headers/drm/drm_fourcc.h     |  48 ++++
 include/standard-headers/linux/ethtool.h      |  15 +-
 .../linux/input-event-codes.h                 |  18 ++
 include/standard-headers/linux/pci_regs.h     |   1 +
 linux-headers/asm-arm/unistd-common.h         |   1 +
 linux-headers/asm-arm64/unistd.h              |   1 +
 linux-headers/asm-generic/unistd.h            |   2 +
 linux-headers/linux/kvm.h                     |  10 +
 linux-headers/linux/vfio.h                    |  76 ++++++
 hw/ppc/spapr.c                                |  14 +-
 hw/ppc/spapr_pci.c                            | 256 +++++++++++++++++-
 hw/ppc/spapr_rtas_ddw.c                       |  19 +-
 hw/vfio/common.c                              |   2 +-
 hw/vfio/pci-quirks.c                          | 121 ++++++++-
 hw/vfio/pci.c                                 |  16 ++
 hw/vfio/spapr.c                               |   3 +-
 hw/vfio/trace-events                          |   6 +-
 22 files changed, 610 insertions(+), 38 deletions(-)
Signature · 1 line
2.17.1