IOMMU for GPUs

From: Johannes Lundberg <johalun0_at_gmail.com>
Date: Sun, 5 Aug 2018 10:34:56 +0100
Hi

First I have to say I don't know much when it comes to virtual GPUs and
IOMMU. I'm trying to figure out what we have and what is missing in regards
to sharing the GPU to virtual guests on Intel and AMD and things like the
amdkfd driver (for Radeon open compute).

Looking at the state of IOMMU in FreeBSD there seem to be (what I guess is)
a general driver for Intel at /usr/src/sys/x86/iommu/.

Then there's the support for AMD's IOMMU in bhyve at
/usr/src/sys/amd64/vmm/io/iommu.c.

Without looking too much into the details my guess is we have an iommu
driver for Intel that Intel's i915/gvt can use but for AMD there's only the
specific implementation for bhyve and no general driver that other clients
can use... Or?

If anyone wants to work on this, it's up for grabs :)
We'll probably have to add some glue in linuxkpi as well.

Cheers
Received on Sun Aug 05 2018 - 07:35:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:17 UTC