<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Thanks Alex, now the driver is working fine. <br><br>I spent the last two days making tests and the results are as folows:<br><br></div>1. from qemu command line I never get past the &quot;This VM has no graphic card&quot; messages even if I change the number of the pci id to the one I bound to vfio-pci (05:00). I&#39;m still trying to learn how to control quemu by command line so most likely I&#39;m using the wrong spell here :)<br>

<pre><code>qemu-system-x86_64 --enable-kvm -M q35 -m 1024 -cpu host \
-smp 6,sockets=1,cores=6,threads=1 \
-bios /usr/share/qemu/bios.bin -vga none \
-device ioh3420,bus=pcie.0,addr=1c.0,multifunction=on,port=1,chassis=1,id=root.1 \
-device vfio-pci,host=05:00.0,bus=root.1,addr=00.0,multifunction=on,x-vga=on \
-device vfio-pci,host=05:00.1,bus=root.1,addr=00.1</code></pre><br></div>2. With virt-manager I&#39;m able to go a bit further once I add the two ids as PCI passthrough devices:<br><br>2.1 I can run a copy of Fedora 18 that loads the open source radeon driver. It doesn&#39;t seem to be really accelerated though but I suppose it&#39;s working because when I reset/poweroff the host resets :)<br>

</div>However I have the following errors in the log:<br><br></div>* Expecting atombios for cayman GPU<br></div>* Fatal error during GPU init<br></div>* probe of &lt;pci id here&gt; failed with -22<br><br></div>2.2 I&#39;m not able to use radeon binary drivers from rpmfusion on this VM. X always dies with &quot;No recognized devices&quot;<br>

<br></div>2.3 I created a new winxp test machine and installed radeon binary drivers on it but the card is not detected. It does appear as &quot;Unrecognized VGA adapter&quot; so it seems that it is exposed, at least partially.<br>

<br></div>I&#39;m a bit out of my wits by now, is there any way to see how virt-manager calls qemu? <br><br></div><div>Do I have to remove nvidia binary driver or patch them? (the primary gpu is a quadro 4000)<br></div><div>

<br></div>Thanks and regards,<br><br></div>Mario<br><div><div><div><div><div><div><div><div><div><div><div><div><br><br></div></div></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On 25 June 2013 20:04, Alex Williamson <span dir="ltr">&lt;<a href="mailto:alex.williamson@redhat.com" target="_blank">alex.williamson@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="im">On Tue, 2013-06-25 at 18:46 +0200, Mario Ceresa wrote:<br>
&gt; Dear all,<br>
&gt; following Cole&#39;s suggestions I installed the fedora-virt-preview repo and<br>
&gt; tried again with VGA<br>
&gt; passthrough from [1]<br>
&gt;<br>
&gt; For this setup i use a nvidia card as the primary one and a radeon hd 7850<br>
&gt; as the passthrough device.<br>
&gt;<br>
&gt; However, there are no iommu_group links neither under<br>
&gt; /sys/bus/pci/devices/0000:05:00.0/ (which is my radeon card) nor under any<br>
&gt; of the other devices.<br>
&gt;<br>
&gt; AFAIG it should be the vfio module which creates these links so I guess<br>
&gt; it&#39;s not working for me.<br>
&gt;<br>
&gt; The driver loads correctly: there are no errors in dmesg and lsmod shows:<br>
&gt; vfio_pci               32063  0<br>
&gt; vfio                   19210  1 vfio_pci<br>
&gt;<br>
&gt; I added iommu=pt iommu=1 to grub<br>
<br>
</div>iommu=1 is not a valid option.  The user in archlinux thread is using an<br>
AMD system, which enables the iommu by default.  On an Intel system, use<br>
intel_iommu=on<br>
<div class="im"><br>
&gt; My system currently includes:<br>
&gt;<br>
&gt; * libvrit 1.0.6<br>
&gt; * qemu 1.5.0<br>
&gt; * kernel 3.9.6<br>
&gt;<br>
&gt; Maybe the kernel is outdated?<br>
&gt;<br>
&gt; I know the functionality is experimental so it&#39;s just to know if I&#39;m doing<br>
&gt; some obvious mistakes.<br>
&gt;<br>
&gt; Thanks for your help,<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Mario<br>
&gt;<br>
&gt; [1] <a href="https://bbs.archlinux.org/viewtopic.php?id=162768" target="_blank">https://bbs.archlinux.org/viewtopic.php?id=162768</a><br>
</div>&gt; _______________________________________________<br>
&gt; virt mailing list<br>
&gt; <a href="mailto:virt@lists.fedoraproject.org">virt@lists.fedoraproject.org</a><br>
&gt; <a href="https://admin.fedoraproject.org/mailman/listinfo/virt" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/virt</a><br>
<br>
<br>
<br>
</blockquote></div><br></div>