Public bug reported: I'm having issues passing Nvidia Tesla GPUs to an OVMF-mode guest. While I can passthrough other devices to an OVMF-mode guest w/o a problem (e.g. Mellanox Connect-X 5 VFs), I'm seeing a couple different failure modes when passing through a GPU:
1) No output: --------- $ virsh start virtinst; virsh console virtinst Domain virtinst started Connected to domain virtinst Escape character is ^] --------- I discovered that I'm able to avoid this by placing the device on a different BSF in the guest. This results in a hang: <address type='pci' domain='0x0000' bus='0x00' slot='0x0b' function='0x0'/> Whilst this gets us further: <address type='pci' domain='0x0000' bus='0x05' slot='0x02' function='0x0'/> Though that too fails after OS boot as described next: 2) OS boots, device appears within, but the kernel is unable to configure resources: [ 4.744211] nvidia-nvlink: Nvlink Core is being initialized, major device number 241 [ 4.750811] NVRM: This PCI I/O region assigned to your NVIDIA device is invalid: [ 4.750811] NVRM: BAR1 is 0M @ 0x0 (PCI:0000:01:02.0) [ 4.756960] NVRM: The system BIOS may have misconfigured your GPU. [ 4.759725] nvidia: probe of 0000:01:02.0 failed with error -1 [ 4.762347] NVRM: The NVIDIA probe routine failed for 1 device(s). [ 4.766010] NVRM: None of the NVIDIA devices were initialized. [ 4.769701] nvidia-nvlink: Unregistered the Nvlink Core, major device number 241 I've found that #2 can be worked around w/ 'pci=nocrs'. Neither issue is reproducible when booting in non-UEFI mode. I observed this with bionic's ovmf 0~20180205.c0d9813c-2ubuntu0.1, and it is reproducible with Debian's 0~20190828.37eef910-3, and a manually built version of the latest upstream edk2 (@412c96384). Kernel-wise, I experimented with upgrading the guest and later the host from bionic's 4.15 GA to 5.3 hwe-edge kernel w/o any noticeable change in behavior. ** Affects: edk2 (Ubuntu) Importance: Undecided Status: New ** Affects: edk2 (Ubuntu Bionic) Importance: Undecided Status: New ** Affects: edk2 (Ubuntu Disco) Importance: Undecided Status: New ** Affects: edk2 (Ubuntu Eoan) Importance: Undecided Status: New ** Affects: edk2 (Ubuntu Focal) Importance: Undecided Status: New ** Also affects: edk2 (Ubuntu Focal) Importance: Undecided Status: New ** Also affects: edk2 (Ubuntu Disco) Importance: Undecided Status: New ** Also affects: edk2 (Ubuntu Bionic) Importance: Undecided Status: New ** Also affects: edk2 (Ubuntu Eoan) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1849563 Title: Unable to passthrough GPUs to guest To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/edk2/+bug/1849563/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs