Grace Blackwell Support: stabilization and performance validation on core features

未關閉
#8,977 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
35/100
Issue 類型
功能
描述清晰度
基本清楚
活躍度
活躍
技術堆疊
linux, rust

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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
主要語言
Rust
星號
6.3k
分支
786
平均合併
1 天 3 小時
30 天內合併 PR
195

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

cloud-hypervisor/cloud-hypervisor 的其他 Issue

查看 cloud-hypervisor/cloud-hypervisor 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。