Description
src/sandbox/gpu.rs line ~52 has a TODO to implement real GPU passthrough verification. Currently the module has unused imports and placeholder logic.
Requirements
- Enumerate PCI devices on Linux, find VGA controllers
- Check IOMMU group membership for each GPU
- Verify singleton IOMMU group (reject if GPU shares group with other devices)
- Explicitly reject the ACS-override patch (per whitepaper: "explicitly prohibited")
- Report GPU capabilities: VRAM size, compute capability, CUDA/ROCm support
- macOS: report CPU-only (GPU passthrough not supported by Virtualization.framework)
- Windows: detect NVIDIA CUDA on WSL2 path availability
Success Criteria
Testing (Principle V)
- Test on machine with NVIDIA GPU in singleton IOMMU group → allowed
- Test on machine with GPU in shared IOMMU group → rejected
- Test ACS-override detection on patched kernel → rejected with clear error
- Test on macOS → CPU-only node classification
Description
src/sandbox/gpu.rsline ~52 has a TODO to implement real GPU passthrough verification. Currently the module has unused imports and placeholder logic.Requirements
Success Criteria
cargo testpassesTesting (Principle V)