<div dir="ltr"><div><div><div><div><div>Hi Cole, thanks for your mail. <br><br></div>I use:<br><br>* qemu-2:1.2.2-11.fc18<br>* ibvirt 0.10.2.5-1.fc18 <br><br></div><div>My second GPU is 04:00.0 and the associated sound device is 04:00.1</div>
<div><br></div><div>So I do:<br></div><br>sudo chmod 666 /dev/vfio/vfio<br>echo "10de 06dd" > /sys/bus/pci/drivers/pci-stub/new_id<br>echo 0000:04:00.0 > /sys/bus/pci/devices/0000\:04\:00.0/driver/unbind<br>
echo 0000:04:00.0 > /sys/bus/pci/drivers/pci-stub/bind<br>echo 0000:04:00.1 > /sys/bus/pci/devices/0000\:04\:00.1/driver/unbind <br>echo "1" > /sys/bus/pci/devices/0000:04:00.1/remove<br><br></div>Then I follow instructions in <a href="https://fedoraproject.org/wiki/QA:Testcase_Virtualization_KVM_PCI_Device_Assignment">https://fedoraproject.org/wiki/QA:Testcase_Virtualization_KVM_PCI_Device_Assignment</a> to assign the PCI slot.<br>
</div><br></div>Mario<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 June 2013 16:12, Cole Robinson <span dir="ltr"><<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 06/20/2013 03:30 AM, Mario Ceresa wrote:<br>
> Dear all,<br>
> does anybody know if it is currently possible to do GPU passthrough in kvm? I<br>
> have access to a dual Quadro 4000 setup and I would like to pass the second<br>
> one to kvm for use in a VM.<br>
><br>
> I read a lot on internet and it seems feasible [1, 2, 3] and there is even a<br>
> reported success case [5].<br>
><br>
> However when I start the VM the host reboots with PCIe error 928: Completion<br>
> timeout.<br>
><br>
> My current setup is:<br>
><br>
> * Fedora 18 with 3.9.4-200 x86_64<br>
> * dmesg | grep -e DMAR -e IOMMU shows that they are both enabled<br>
> * nvidia driver installed from rpmfusion<br>
> * I use vfio assignment as per [4]<br>
><br>
> Thanks and regards,<br>
><br>
> Mario<br>
><br>
><br>
> [1] <a href="http://www.linux-kvm.org/page/VGA_device_assignment" target="_blank">http://www.linux-kvm.org/page/VGA_device_assignment</a><br>
> [2] <a href="https://bbs.archlinux.org/viewtopic.php?id=162768" target="_blank">https://bbs.archlinux.org/viewtopic.php?id=162768</a><br>
> [3]<br>
> <a href="http://samos-it.com/removedetach-a-pci-device-linux-kvm-vga-passthrgough-nvidia-quadro-2000/" target="_blank">http://samos-it.com/removedetach-a-pci-device-linux-kvm-vga-passthrgough-nvidia-quadro-2000/</a><br>
> [4]<br>
> <a href="https://fedoraproject.org/wiki/QA:Testcase_Virtualization_KVM_PCI_Device_Assignment" target="_blank">https://fedoraproject.org/wiki/QA:Testcase_Virtualization_KVM_PCI_Device_Assignment</a><br>
> [5]<br>
> <a href="http://tavi-tech.blogspot.com.es/2012/05/vga-passthrough-kvm-fedora-17-and.html" target="_blank">http://tavi-tech.blogspot.com.es/2012/05/vga-passthrough-kvm-fedora-17-and.html</a><br>
><br>
<br>
</div></div>CC-ing Alex (the VFIO guy)<br>
<br>
What qemu and libvirt versions are you using?<br>
<span class="HOEnZb"><font color="#888888"><br>
- Cole<br>
</font></span></blockquote></div><br></div>