<div dir="ltr">To do this dynamically, i use scripts which in sum do:<div><br></div><div>Unbinding:</div><div><div>echo 0000:0a:00.0 | sudo tee /sys/bus/pci/devices/0000:0a:00.0/driver/unbind</div></div><div>It means => on the driver actually used by 0000:0a:00.0, unbind the device 0000:0a:00.0<br></div><div><br></div><div>Binding to vfio:</div><div>echo "1b21 0612" | sudo tee -a /sys/bus/pci/drivers/vfio-pci/new_id<br></div><div>echo "0000:0a:00:0" | sudo tee -a /sys/bus/pci/drivers/vfio-pci/bind<br></div><div><br></div><div><br></div><div>I use them for:</div><div> - nvme device</div><div> - sata controller</div><div><br></div><div>You could do same for GPU. But actually, it break dpm, so you have shitty performance.</div><div>It is usefull for me to bind back to host as the nvme device seems to be lost with vfio-pci and host sleep. (can be recovered with loading nvme)</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr">--<div>Deldycke Quentin<br></div><div><div><br></div></div></div></div></div>
<br><div class="gmail_quote">On 15 January 2016 at 10:37, thibaut noah <span dir="ltr"><<a href="mailto:thibaut.noah@gmail.com" target="_blank">thibaut.noah@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I actually have no clue about how to unbind the device from xhci driver and bind it to vfio.<br>It was explain in some tutorials for graphic cards but not for other devices so i'm totally lost.<br><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-01-15 10:35 GMT+01:00 Quentin Deldycke <span dir="ltr"><<a href="mailto:quentindeldycke@gmail.com" target="_blank">quentindeldycke@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There is no difference. <div><br></div><div>lspci to find your card, you bind it to vfio-pci and use virt-manager to add the card.</div><div><br></div><div>Should work out of the box. Juste take care that this device is unbind from your xhci driver on host. then binded to vfio-pci.</div><div><br></div><div>Take care of the iommu groups like the graphic card.</div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr">--<div>Deldycke Quentin<br></div><div><div><br></div></div></div></div></div>
<br><div class="gmail_quote"><span>On 15 January 2016 at 10:32, thibaut noah <span dir="ltr"><<a href="mailto:thibaut.noah@gmail.com" target="_blank">thibaut.noah@gmail.com</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><div dir="ltr">Hello, i'm currently trying to passthrough an usb card controler to solve my usb issues (like audio glitches on headset and allow plug and play), problem is it seems that no one did tutorials for this and i'm a bit lost, only tutorial i found was to passthrough an internal usb controler.<br>Anybody got some documentation to share?</div>
<br></span>_______________________________________________<br>
vfio-users mailing list<br>
<a href="mailto:vfio-users@redhat.com" target="_blank">vfio-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/vfio-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/vfio-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>