Grace Blackwell Support: stabilization and performance validation on core features

Ouverte
#8,977 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
linux, rust

Piste de recherche

Start by reviewing the IOMMUFD/vSMMUv3 series and the issue’s functional-stability checklist, then run the listed VM lifecycle and device-attachment tests on GB200 or GB300 hardware. Compare matrixMul, bandwidthTest, and single- and multi-node NCCL against bare metal and, where possible, QEMU; record the full software stack and agree on acceptable performance deltas. Done means stability issues are addressed, performance is validated, and a bare-metal CI route is identified.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Summary

With the final patch set of the IOMMUFD / vSMMUv3 series landing, Cloud Hypervisor should be able to boot Grace Blackwell (GB200/GB300) guests with GPU passthrough and run CUDA workloads. Before moving on to new features (#8976), we want to stabilize this path and confirm performance is where we expect it, relative to bare metal and QEMU.

This issue tracks that work: the test matrix, the software stack we validate against, known stability issues, and the plan for a CI machine.

Functional stability

  • VM lifecycle: boot, shutdown (clean teardown), reboot
  • Repeated reboot and boot/shutdown cycles, verifying the host is left clean each time
  • VFIO devices (e.g. GPU) attached to the vSMMUv3 (no hotplug/unplug)
  • VFIO devices (e.g. NIC, NVMe) not attached to the vSMMUv3
  • Hotplug/unplug of non-VFIO devices
  • GPU health: dcgmi diagnostics at multiple levels
  • Optional: Hotplug/unplug of non-GPU VFIO devices

Known/suspected issue: VM teardown has been reported as not fully clean.

Performance parity

  • CUDA samples: matrixMul, bandwidthTest, etc.
  • Single-node NCCL (GPUs on the same node)
  • Multi-node NCCL (GPUDirect RDMA over InfiniBand; requires P2P DMA, see below)

Baseline: same tests on bare metal and, where possible, QEMU on the same host. We should agree on an acceptable delta per test.

Validation configuration

Platforms
Who Platform
@sboeuf (Meta) GB200
@yamahata (Crusoe) GB300

From a virtualization standpoint the two should behave identically; covering both lets us catch platform-specific variations.

Software stack

Firmware (platform and GPU), host kernel, NVIDIA driver, and CUDA version have all made a real difference in our experience. Please record the full stack when reporting results: platform vendor and firmware, GPU firmware, host kernel (base + patches), guest kernel, NVIDIA driver, CUDA.

Peer-to-peer DMA Caveats

Multi-node NCCL relies on GPUDirect RDMA (the NIC DMAs directly into the GPU BAR), which in a VM requires the GPU BAR to be mapped into the host IOMMU domain for the peer device. Two host-kernel configurations are:

Canonical's NVIDIA HWE stack: https://discourse.ubuntu.com/t/nvidia-grace-blackwell-canonical-support/72534

  • Recommended by Canonical/NVIDIA for pre-production and production GB200 NVL72 and GB300 NVL72 systems.
  • Pros: fully qualified stack, including NVIDIA HWE kernel (v6.17-based), GPU driver, CUDA, DOCA-OFED, QEMU/libvirt.
  • Cons: relies on a downstream workaround that maps BAR PFNs directly (without proper dma-buf support in the kernel).

Upstream-based kernel ≥ 6.19

  • Pros: proper VFIO P2P via dma-buf (VFIO_DEVICE_FEATURE_DMA_BUF + IOMMU_IOAS_MAP_FILE) merged in v6.19.
  • Cons: not qualified against the rest of the NVIDIA stack; a stream of follow-up fixes (need further research).
  • Reference: support added to qemu v11.0

Note: The two configurations therefore need different Cloud Hypervisor behaviour. When it is being supported, the dma-buf work should fall back to plain IOMMU_IOAS_MAP when the kernel returns ENOTTY, so the both configurations continue to work.

CI

This is a large feature in a fast-moving ecosystem, and CI coverage is critical. The CI machine must be bare metal. Minimum is a single GB node (2 Grace + 4 GPUs); two nodes from different racks (e.g. in different NVLink domains) would additionally cover GPUDirect RDMA.

Potential routes to explore:

  • Hardware sponsored by an interested company
  • Public bare-metal offerings
Langage dominant
Rust
Étoiles
6.3k
Forks
786
Merge moyen
1 j 3 h
PR mergées (30 j)
195

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de cloud-hypervisor/cloud-hypervisor

Toutes les issues de cloud-hypervisor/cloud-hypervisor

Issues similaires

Plus d'issues Rust

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.