<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 &quot;10de 06dd&quot; &gt; /sys/bus/pci/drivers/pci-stub/new_id<br>echo 0000:04:00.0 &gt; /sys/bus/pci/devices/0000\:04\:00.0/driver/unbind<br>

echo 0000:04:00.0 &gt; /sys/bus/pci/drivers/pci-stub/bind<br>echo 0000:04:00.1 &gt; /sys/bus/pci/devices/0000\:04\:00.1/driver/unbind <br>echo &quot;1&quot; &gt; /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">&lt;<a href="mailto:crobinso@redhat.com" target="_blank">crobinso@redhat.com</a>&gt;</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>
&gt; Dear all,<br>
&gt; does anybody know if it is currently possible to do GPU passthrough in kvm? I<br>
&gt; have access to a dual Quadro 4000 setup and I would like to pass the second<br>
&gt; one to kvm for use in a VM.<br>
&gt;<br>
&gt; I read a lot on internet and it seems feasible [1, 2, 3] and there is even a<br>
&gt; reported success case [5].<br>
&gt;<br>
&gt; However when I start the VM the host reboots with PCIe error 928: Completion<br>
&gt; timeout.<br>
&gt;<br>
&gt; My current setup is:<br>
&gt;<br>
&gt; * Fedora 18 with 3.9.4-200 x86_64<br>
&gt; * dmesg | grep -e DMAR -e IOMMU shows that they are both enabled<br>
&gt; * nvidia driver installed from rpmfusion<br>
&gt; * I use vfio assignment as per [4]<br>
&gt;<br>
&gt; Thanks and regards,<br>
&gt;<br>
&gt; Mario<br>
&gt;<br>
&gt;<br>
&gt; [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>
&gt; [2] <a href="https://bbs.archlinux.org/viewtopic.php?id=162768" target="_blank">https://bbs.archlinux.org/viewtopic.php?id=162768</a><br>
&gt; [3]<br>
&gt; <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>


&gt; [4]<br>
&gt; <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>
&gt; [5]<br>
&gt; <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>
&gt;<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>