Re: [PATCH v4 0/5] Rust VFIO PCI support and NVIDIA vGPU driver

From: Gary Guo

Date: Wed Dec 02 2026 - 09:01:32 EST


On Fri Nov 27, 2026 at 10:49 PM GMT, Simon Song wrote:
> This is v4 of the Rust VFIO PCI abstractions and the NVIDIA VFIO variant
> driver [1]. The driver uses nova-core's typed SR-IOV PF interface to
> create, reset and release vGPU instances while VFIO provides userspace
> access to the PCI device.
>
> Patches 1-5 of v3 were applied to driver-core-next, so this version
> carries the remaining patches. Patch 1 adds the VFIO device handling
> common to all buses. Patch 2 adds two VmaRef accessors for patch 3, the
> VFIO PCI abstractions. Patch 4 publishes the typed Nova PF interface,
> and patch 5 adds the NVIDIA VFIO variant driver.
>
> This series is based on driver-core-next. Patches 1-3 need nothing else.
> Patches 4 and 5 also depend on v5 of Alok's vGPU manager series [2] and
> can follow once it has landed.
>
> Runtime PM is still not part of this series. It will follow once the
> generic Rust runtime PM support [3] and the PCI bus handling for it are
> available. Until then, vfio::pci::Registration keeps the device runtime
> active while it is registered.
>
> Link: https://lore.kernel.org/nova-gpu/20261119215046.2892839-1-xinmengs@xxxxxxxxxx/ [1]
> Link: https://lore.kernel.org/nova-gpu/20261124135937.18583-1-alkumar@xxxxxxxxxx/ [2]
> Link: https://lore.kernel.org/all/20261124113555.2480381-1-beata.michalska@xxxxxxx/ [3]
>
> Danilo Krummrich (2):
> rust: vfio: add PCI variant driver abstractions
> vfio/nova-vgpu: add the Rust VFIO variant driver
>
> Simon Song (1):
> rust: mm: add VmaRef::size() and VmaRef::pgoff()
>
> Zhi Wang (2):
> rust: vfio: add common VFIO device handling
> gpu: nova-core: publish typed SR-IOV PF APIs
>
> drivers/gpu/Makefile | 15 +-
> drivers/gpu/nova-core/driver.rs | 34 +-
> drivers/gpu/nova-core/nova_core.rs | 3 +-
> drivers/gpu/nova-core/vgpu.rs | 1 -
> drivers/gpu/nova-core/vgpu/vgpu_api.rs | 171 +++--
> drivers/vfio/pci/Kconfig | 2 +
> drivers/vfio/pci/Makefile | 2 +
> drivers/vfio/pci/nova-vgpu/Kconfig | 20 +
> drivers/vfio/pci/nova-vgpu/Makefile | 3 +
> drivers/vfio/pci/nova-vgpu/nova_vgpu.rs | 418 ++++++++++++
> rust/bindings/bindings_helper.h | 4 +
> rust/kernel/lib.rs | 2 +
> rust/kernel/mm/virt.rs | 14 +
> rust/kernel/pci.rs | 12 +
> rust/kernel/vfio.rs | 462 ++++++++++++++
> rust/kernel/vfio/pci.rs | 812 ++++++++++++++++++++++++
> 16 files changed, 1930 insertions(+), 45 deletions(-)
> create mode 100644 drivers/vfio/pci/nova-vgpu/Kconfig
> create mode 100644 drivers/vfio/pci/nova-vgpu/Makefile
> create mode 100644 drivers/vfio/pci/nova-vgpu/nova_vgpu.rs
> create mode 100644 rust/kernel/vfio.rs
> create mode 100644 rust/kernel/vfio/pci.rs

Which tree is this created against? This doesn't apply against rust-next,
linux-next nor drm-rust-next.

I checked that the status of all 4 versions of the series is "Failed to Apply"
on Sashiko so this series never went through Sashiko review.

Best,
Gary