gVisor supports for GPU

96 views
Skip to first unread message

Xinyang Ge

unread,
Oct 2, 2023, 8:38:24 PM10/2/23
to gVisor Users [Public]
This blog post says gVisor supports sandboxing GPU workloads now: https://gvisor.dev/blog/2023/06/20/gpu-pytorch-stable-diffusion/.  Given GPU workloads rely on DMA to transfer data in between the GPU memory and DRAM, does gVisor prevent the workload from issuing arbitrary DMAs on instances without the IOMMU support?  If so, can you point me to the details of the protection in the doc and/or code?

Thanks for the help!

Jamie Liu

unread,
Oct 3, 2023, 2:28:48 PM10/3/23
to gVisor Users [Public]
gVisor doesn't introduce any additional hardware-level isolation beyond that which is configured by the Nvidia kernel-mode driver.

Xinyang Ge

unread,
Oct 3, 2023, 5:41:08 PM10/3/23
to gVisor Users [Public]
Do you happen to know if the Nvidia's kernel-mode driver apply any checks on the DMA?  Is there a list of isolations enforced by the Nvidia's driver?
Reply all
Reply to author
Forward
0 new messages