agent-substrate / agent-substrate/substrate

GPU passthrough for micro-VM actors

Offen
#762 4 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @eliranw Auf GitHub ansehen
area/microVM kind/feature
Vorherrschende Sprache
Go
Sterne
1.8k
Forks
316
Ø Merge
2 T. 43 Min.
Gemergte PRs (30 T.)
287

Beschreibung

GPU passthrough for gVisor actors is proposed in #502. Nothing equivalent exists for micro-VM actors, and that PR gates the combination: a `microvm` WorkerPool requesting `nvidia.com/gpu` is rejected at apply time, because the pod would otherwise schedule onto a GPU node and hold a device no actor could use.

The gVisor approach does not carry over. It injects the host driver into the sandbox via CDI, which relies on the actor sharing the host kernel. A micro-VM guest has its own kernel, so the device has to be passed through — VFIO PCI passthrough for the GPU, plus getting a matching driver and user-mode libraries into the guest.

Open questions:

- VFIO device binding and IOMMU requirements on the node, and whether that composes with the unprivileged worker posture
- How the guest gets a driver matching the host GPU, and how it stays version-matched
- Whether cloud-hypervisor's VFIO support covers what is needed here
- What this means for snapshot/restore, which for micro-VM captures guest memory

Filing so the design is tracked outside the gVisor PR.

Related: #627, #502

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.