<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:8pt"><div><span><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; ">i found this discussion of the same error:<br><div class="im" style="color: rgb(80, 0, 80); "><a href="http://www.linux-kvm.com/content/pci-passthrough-error" target="_blank" style="color: rgb(17, 85, 204); ">http://www.linux-kvm.com/<wbr>content/pci-passthrough-error</a><br>> "I've solved my problem by deleting the '.save' file in<br>> /var/lib/libvirt/qemu/save"<br><br></div>but i don't have that file:<br><br>> sudo ls -al /var/lib/libvirt/qemu/save<br>total 8<br>drwxr-xr-x 2 qemu qemu 4096 Sep 16 03:22 .<br>drwxr-x--- 5 qemu qemu 4096 Sep 19 10:13 ..</span></span></div><div><span><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size:
 13px; "><br></span></span></div><div><span><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; ">-erik</span></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-size: 8pt; font-family: 'Courier New', courier, monaco, monospace, sans-serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> erik flister <erik.flister@gmail.com><br><b><span style="font-weight: bold;">To:</span></b> virt-tools-list@redhat.com<br><b><span style="font-weight: bold;">Sent:</span></b> Monday, September 19, 2011 9:19 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [virt-tools-list] pci passthrough fail on fedora 15/kvm/qemu/virt-manager hosting win 7 (all 64 bit)<br></font><br>AMD
 phenom II X6 1075T proc<br>ASUS M4A87TD mobo<br>BIOS ver 2001 (built 3/8/11)<br><br>advanced/cpu config/secure virtual machine mode enabled in BIOS<br><br>not sure if this turns on iommu, how do i verify?<br><br>/proc/cpuinfo has hits for svm but not iommu or vmx.<br><br>> dmesg | grep -i iommu<br>[    0.000000] Please enable the IOMMU option in the BIOS setup<br>[    1.515596] PCI-DMA: using GART IOMMU.<br>[    1.515599] PCI-DMA: Reserving 64MB of IOMMU area in the AGP aperture<br><br>note my pci cards have windows drivers, but not linux drivers as far as i know.<br><br>i have latest yummed kvm/qemu/virt-manager.<br><br>i am using this virtualization method:<br><a href="http://www.techotopia.com/index.php/Running_Windows_on_Fedora_Using_KVM_Virtualization" target="_blank">http://www.techotopia.com/index.php/Running_Windows_on_Fedora_Using_KVM_Virtualization</a><br><br>i didn't know to disconnect the pci cards from the
 host before adding<br>them to the guest until finding:<br><a href="http://docs.fedoraproject.org/en-US/Fedora/13/html/Virtualization_Guide/sect-Virtualization-PCding_a_PCI_device_to_a_host.html" target="_blank">http://docs.fedoraproject.org/en-US/Fedora/13/html/Virtualization_Guide/sect-Virtualization-PCding_a_PCI_device_to_a_host.html</a><br><br>> lspci<br><br>02:06.0 Unassigned class [ff00]: National Instruments PCI-6110<br>02:07.0 Serial controller: NetMos Technology PCI 9865 Multi-I/O Controller<br>02:07.1 Serial controller: NetMos Technology PCI 9865 Multi-I/O Controller<br>02:07.2 Parallel controller: NetMos Technology PCI 9865 Multi-I/O Controller<br><br>> lspci -n<br><br>02:06.0 ff00: 1093:14e0<br>02:07.0 0700: 9710:9865<br>02:07.1 0700: 9710:9865<br>02:07.2 0701: 9710:9865<br><br>> virsh nodedev-list | grep pci<br><br>pci_0000_02_06_0<br>pci_0000_02_07_0<br>pci_0000_02_07_1<br>pci_0000_02_07_2<br><br>> sudo virsh nodedev-dettach
 pci_0000_02_06_0<br>Device pci_0000_02_06_0 dettached<br><br><br>but then, after adding it to the guest and trying to boot it, i get:<br><br>Error starting domain: this function is not supported by the<br>connection driver: Unable to reset PCI device 0000:02:06.0: this<br>function is not supported by the connection driver: Active<br>0000:02:07.0 devices on bus with 0000:02:06.0, not doing bus reset<br><br>Traceback (most recent call last):<br>  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 45, in cb_wrapper<br>    callback(asyncjob, *args, **kwargs)<br>  File "/usr/share/virt-manager/virtManager/engine.py", line 959, in asyncfunc<br>    vm.startup()<br>  File "/usr/share/virt-manager/virtManager/domain.py", line 1128, in startup<br>    self._backend.create()<br>  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 330, in create<br>    if ret == -1: raise libvirtError
 ('virDomainCreate() failed', dom=self)<br><br><br><br>if i disable the other devices on bus 02 and add them to the guest:<br>> sudo virsh nodedev-dettach pci_0000_02_07_0<br>Device pci_0000_02_07_0 dettached<br><br>> sudo virsh nodedev-dettach pci_0000_02_07_1<br>Device pci_0000_02_07_1 dettached<br><br>> sudo virsh nodedev-dettach pci_0000_02_07_2<br>Device pci_0000_02_07_2 dettached<br><br>i then get this error on booting the guest (but with the same stack<br>trace as above):<br><br>Error starting domain: cannot send monitor command<br>'{"execute":"qmp_capabilities"}': Connection reset by peer<br><br>and then networking fails on the host until i reboot, and fedora won't<br>even shutdown all the way (i have to do a hard reboot by holding down<br>the power button).<br><br>any idea how i can fix this?  why isn't detaching the device<br>automatically done when it is added to the guest?  even if i get this<br>working, it seems i will
 have to detach stuff every time i reboot the<br>host?  finally, in this case, i actually do want to give everything on<br>bus 02 to the guest, but what if i didn't?<br><br>thanks for your help!<br>-erik<br><br><br>see also iommu/bios stuff here:<br><a href="http://docs.fedoraproject.org/en-US/Fedora/13/html-single/Virtualization_Guide/index.html" target="_blank">http://docs.fedoraproject.org/en-US/Fedora/13/html-single/Virtualization_Guide/index.html</a><br><br>_______________________________________________<br>virt-tools-list mailing list<br><a ymailto="mailto:virt-tools-list@redhat.com" href="mailto:virt-tools-list@redhat.com">virt-tools-list@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/virt-tools-list" target="_blank">https://www.redhat.com/mailman/listinfo/virt-tools-list</a><br><br><br></div></div></blockquote></div></div></body></html>