Grace Blackwell Support: stabilization and performance validation on core features

Đang mở
#8,977 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
linux, rust

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Rust
Star
6.3k
Fork
786
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
195

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cloud-hypervisor/cloud-hypervisor

Tất cả issue của cloud-hypervisor/cloud-hypervisor

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.