Public bug reported:

Hello to everyone.

I'm trying to pass-through my nvidia RTX 2080 ti with qemu + xen +
libvirt + virt-manager. I've realized that I can't pass every device
located inside the IOMMU group. Basically,if I try to pass the
"0000:01:00:1 NVIDIA Corporation TU102 High Definition Audio
Controller",windows 10 guest os is not able to boot properly. It freezes
forever on the boot. Anyway,if I decide to don't pass through that
device to the vm,I'm not able to make work the nvidia driver and it
reports the error 43,I'm sure because it needs also the missing
component to work properly. I don't have this problem if I don't use
libvirt. what to do ? I'm using ubuntu 20.04,xen version :

root@ziomario-z390aoruspro:/etc/xen# xl info
host                   : ziomario-z390aoruspro
release                : 5.4.0-42-generic
version                : #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020
machine                : x86_64
nr_cpus                : 16
max_cpu_id             : 15
nr_nodes               : 1
cores_per_socket       : 8
threads_per_core       : 2
cpu_mhz                : 3600.603
hw_caps                : 
bfebfbff:77faf3ff:2c100800:00000121:0000000f:009c6fbf:00000000:00000100
virt_caps              : hvm hvm_directio
total_memory           : 32627
free_memory            : 14117
sharing_freed_memory   : 0
sharing_used_memory    : 0
outstanding_claims     : 0
free_cpus              : 0
xen_major              : 4
xen_minor              : 11
xen_extra              : .4-pre
xen_version            : 4.11.4-pre
xen_caps               : xen-3.0-x86_64 xen-3.0-x86_32p hvm-3.0-x86_32 
hvm-3.0-x86_32p hvm-3.0-x86_64 
xen_scheduler          : credit
xen_pagesize           : 4096
platform_params        : virt_start=0xffff800000000000
xen_changeset          : 
xen_commandline        : placeholder
cc_compiler            : gcc (Ubuntu 9.2.1-31ubuntu3) 9.2.1 20200306
cc_compile_by          : ubuntu-devel-di
cc_compile_domain      : lists.ubuntu.com
cc_compile_date        : Tue Mar 10 09:04:06 UTC 2020
build_id               : 70edf50fce444a706eb5c69735c35c1838e4eaee
xend_config_format     : 4

 and this xen / libvirt cfg file :

<domain type='xen'>
  <name>win10-sdb</name>
  <uuid>bd40e4ee-9ee5-4d63-9cec-ecd2424cb283</uuid>
  <memory unit='KiB'>2048000</memory>
  <currentMemory unit='KiB'>2048000</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <os>
    <type arch='x86_64' machine='xenfv'>hvm</type>
    <loader type='rom'>/usr/lib/xen-4.11/boot/hvmloader</loader>
    <boot dev='hd'/>
    <bootmenu enable='yes'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <cpu mode='host-model'/>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <emulator>/usr/lib/xen-4.11/bin/qemu-system-i386</emulator>
    <disk type='block' device='disk'>
      <driver name='phy' type='raw'/>
      <source dev='/dev/sdb'/>
      <target dev='sda' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver type='raw'/>
      <target dev='sdb' bus='scsi'/>
      <readonly/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>
    <controller type='xenbus' index='0'/>
    <controller type='scsi' index='0'/>
    <controller type='usb' index='0'/>
    <interface type='bridge'>
      <mac address='00:16:3e:29:2d:36'/>
      <source bridge='virbr0'/>
      <model type='e1000'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' keymap='lt'>
      <listen type='address'/>
    </graphics>
    <video>
      <model type='vga' vram='16384' heads='1' primary='yes'/>
    </video>
    <hostdev mode='subsystem' type='pci' managed='no'>
      <driver name='xen'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
      </source>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='no'>
      <driver name='xen'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x2'/>
      </source>
    </hostdev>
    <hostdev mode='subsystem' type='pci' managed='no'>
      <driver name='xen'/>
      <source>
        <address domain='0x0000' bus='0x01' slot='0x00' function='0x3'/>
      </source>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <vendor id='0x045e'/>
        <product id='0x02c4'/>
      </source>
    </hostdev>
    <memballoon model='xen'/>
  </devices>
</domain>


let me know.

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "Screenshot from 2020-08-14 18-27-03.png"
   
https://bugs.launchpad.net/bugs/1891687/+attachment/5401554/+files/Screenshot%20from%202020-08-14%2018-27-03.png

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1891687

Title:
  Can't  pass "0000:01:00:1 NVIDIA Corporation TU102 High Definition
  Audio Controller" from qemu + xen + libvirt + virt-manager VM to
  windows 10 guest os

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1891687/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to