[vfio-users] Quadro M1200 Mobile for CUDA

Taiidan at gmx.com Taiidan at gmx.com
Wed Oct 17 16:42:24 UTC 2018


On 10/15/2018 12:00 PM, Simon Brand wrote:
> Good evening,
> 
> I have a Lenovo Thinkpad P51 and I want to pass the GPU (GM107GLM
> [Quadro M1200 Mobile]) to (linux) VM. I only want to run cuda on the
> GPU, so there is no output needed.
> I use an uptodate arch linux:
>  $ uname -r
> 4.18.14-arch1-1-ARCH
>  $ qemu-system-x86_64 --version
> 
> The guest can see the nvidia card and the nvidia module is loaded, but
> when I try to run nvidia-smi, it does not find my card.
> 
> I read that I need to pass every device in my IOMMU group to the vm.
> I have the following groups:
> 
> IOMMU Group 1 00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200
> v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) [8086:1901]
> (rev 05)
> IOMMU Group 1 01:00.0 3D controller [0302]: NVIDIA Corporation
> GM107GLM [Quadro M1200 Mobile] [10de:13b6] (rev a2)
> IOMMU Group 2 00:02.0 VGA compatible controller [0300]: Intel
> Corporation Device [8086:591b] (rev 04)
> 
> I start the host kernel with these parameters:
> BOOT_IMAGE=/boot/vmlinuz-linux
> root=UUID=9ad057db-0173-4df2-b73c-ca8b2f30b850 rw
> cryptdevice=/dev/nvme0n1p1:root root=/dev/mapper/root
> cryptkey=rootfs:/crypt.key intel_iommu=on i915.enable_gvt=1 iommu=pt
> quiet vfio_pci.ids=10de:13b6,8086:1901 efifb=off
> 
> But the pci-bridge still gets assigned to pcieport driver. (I dont
> know, if this is a problem, beause I dont pass it to the vm?).

You don't pass pci bridges or switches or attempt to assign them to vfio
no matter if they appear in the same group as a device like they do on
intel systems, it is probably nothing (since you say it doesn't get
assigned to vfio-pci anyway) but try again without that.




More information about the vfio-users mailing list