freenode
Kernel & Low-Level

NVIDIA proposes a vGPU manager for the Rust Nova driver

The submission adds physical-function lifecycle and GSP plugin control for whole-GPU SR-IOV, while the VFIO driver is still a separate posting.

NVIDIA has posted the physical-function half of open host support for its virtual GPUs in Nova, the Rust driver for recent NVIDIA hardware being developed in the Linux kernel.

Alok Kumar's submission adds a vGPU manager to nova-core so a host can create and tear down virtual GPU instances on the whole-GPU SR-IOV path. Guests, whether Linux or Windows, still reach a virtual function through QEMU and VFIO. The driver that would bind those virtual functions, and the typed service that would publish the physical-function APIs, are separate submissions. Until they land, userspace cannot drive this manager.

What the code does provide is the host-side lifecycle that NVIDIA's proprietary stacks have long kept to themselves. The manager asks the GPU's GSP firmware which vGPU type is assigned to a virtual function, then reserves a matching set of channels, framebuffer memory and a plugin management heap. An instance registry written by Zhi Wang refuses a second claim on the same GPU function ID or PCI identity and will not exceed the type's instance limit.

Video memory comes from a slot pool that holds one exact range per slot. Allocating the guest framebuffer and the management heap independently fragments that memory and does not keep a stable layout for a given vGPU type.

Each instance then boots a GSP plugin, waits for a ready marker in a shared communication buffer, negotiates an RPC protocol, and sends configuration covering identity, channels and host parameters. Only after that does the manager report that bus mastering is enabled, the point at which a guest is expected to use the vGPU. Shutdown stops the plugin, waits for completion, and releases firmware resources before those buffers are unmapped. Guest video memory is scrubbed before the plugin boots and again after shutdown, before a slot can be reused. The last channel in each instance's range is held back for that copy engine.

The supported layout is whole-GPU only. Multi-instance GPU resource fields are left zero, and the device identity derived from the virtual function's PCI address is explicitly not a name that survives migration.