[vfio-users] W10: installing RX Vega 56 drivers locks up VM

Tmplt tmplt at dragons.rocks
Fri Mar 29 19:26:12 UTC 2019


On 3/29/19 2:16 AM, 小川寿人 wrote:
> Hi,
> 
> If you using Radeon RX with i440fx type vm, GPU attached to
> pcie-root-complex trick is maybe needed.
> 
> i440fx and recent AMD Crimson drivers
> https://www.redhat.com/archives/vfio-users/2016-April/msg00153.html
> 
> Remove your Radeon RX Vega 56 passthrough config from
> <hostdev>~~</hostdev>section and using libvirt "<qemu:arg>" option, some
> thing like this.
> 
> <qemu:commandline><qemu:argvalue='-device'/><qemu:argvalue='ioh3420,bus=pci.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1'/><qemu:argvalue='-device'/><qemu:argvalue='vfio-pci,host=01:00.0,bus=root.1,addr=00.0,multifunction=on,rombar=on'/><qemu:argvalue='-device'/><qemu:argvalue='vfio-pci,host=01:00.1,bus=root.1,addr=00.1'/></qemu:commandline>
> 
>
I was only denied permission to /dev/vfio/16 wen trying this, even if I
attached the audio interface the usual way, and if I made qemu run as root.

> Or, Use Q35 type VM with Intel ioh3420 pcie-root-port. For example, see
> below.
> 
>     <controller type='pci' index='2' model='pcie-root-port'>
>       <model name='ioh3420'/>
>       <target chassis='2' port='0x11'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
> function='0x1'/>
>     </controller>
> 
> ~~~~~ snip ~~~~~~
> 
>     <hostdev mode='subsystem' type='pci' managed='yes'>
>       <source>
>         <address domain='0x0000' bus='0xaf' slot='0x00' function='0x0'/>
>       </source>
>       <rom bar='on'/>
>       <address type='pci' domain='0x0000' bus='0x02' slot='0x00'
> function='0x0' multifunction='on'/>
>     </hostdev>
>     <hostdev mode='subsystem' type='pci' managed='yes'>
>       <source>
>         <address domain='0x0000' bus='0xaf' slot='0x00' function='0x1'/>
>       </source>
>       <address type='pci' domain='0x0000' bus='0x02' slot='0x00'
> function='0x1'/>
>     </hostdev>
> 
Thank you, this approach worked. I was unsure what entry of `<model
name='...'/>` I should replace so I replaced them all. Should they
remain so? Updated XML is attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vm-q35.xml
Type: text/xml
Size: 6205 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20190329/e0dc50bc/attachment.xml>


More information about the vfio-users mailing list