← Back to context

Comment by mjg59

8 hours ago

Hrm, something of a lack of discussion about what level of access the card has to the host in the absence of IOMMU-restricted passthrough.

I am very sceptical about this. I have some experience in GPU virtualization and passthrough with Nvidia GPUs and they are really not designed to be able to share them with multiple guests/host without Nvidia's blessing (licenced drivers).

  • Yes they are not... we run the Nvidia drivers unmodified. Only thing we have done is make the guest driver think it's running on the host, talking to the host's GPU kernel.

    It works really well with a ~2% performance penalty. Nvproxy by google/gvisor has been doing this for years.

    You should try running it yourself and see how it goes :D

    • So you can share the GPU between multiple VMs? I can have 4 VMs simultaneously do work on the GPU?

      And each one would have its own Nvidia driver? How do they not interfere with each other? I mean I am by no means an expert in GPU architecture or anything similar, but I thought the problems with sharing a GPU come from the differences between GPU vs CPU architecture. On the other hand, multiple processes on a host can run on the same GPU, but that is all using the same kernel. I am just very confused.

      1 reply →

    • How is this different (in effect, not technically) from just using PCI passthrough, apart from being less safe and less tested?

      2 replies →

  • If memory serves, there is a way to hack the drivers to unlock MIG for GeForce GPUs.