From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Brakkee Subject: Re: PCI passthrough on Sony Vaio F11 laptop... Date: Sat, 13 Nov 2010 12:42:39 +0100 Message-ID: <4CDE79AF.4040002@brakkee.org> References: <4CDDCE40.9050001@brakkee.org> <4CDE746A.2090701@web.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090106030502030702000800" Cc: kvm@vger.kernel.org To: Jan Kiszka Return-path: Received: from cpsmtp-fia03.kpnxchange.com ([195.121.247.6]:1155 "EHLO cpsmtp-fia03.kpnxchange.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753782Ab0KMLmr (ORCPT ); Sat, 13 Nov 2010 06:42:47 -0500 In-Reply-To: <4CDE746A.2090701@web.de> Sender: kvm-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------090106030502030702000800 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Jan Kiszka wrote: > > What IRQ is the sky2 using when assigned to the host? Is it really a > shared IRQ (I bet not as it should be using MSI)? > > Also, check in the libvirt logs what qemu-kvm reports on the console. > > Jan > > The output from 'cat /proc/interrupts' directly after boot is in the sky2.interrupts. The relevant line from the output is 35: 0 0 0 0 1 0 0 0 PCI-MSI-edge sky2@pci:0000:04:00.0 So it looks like it is using MSI (although I don't have clue what that means). The log file for my domain (the name is "other") is attached in "other.log" In the log file I see: No IOMMU found. Unable to assign device "hostdev0" Does this mean that I don't have IOMMU available on my laptop? The output from 'dmesg | grep -i IOMMU' showed that Intel-IOMMI was enabled, but perhaps that means only that the IOMMU option is activated but not that it is really functioning. It must be either (1) Intel VT-d available on my laptop and there is some configuration/software problem or (2) The output from dmesg is misleading. What do you think? Cheers Erik -- Nonsense and other useful things: http://brakkee.org MountainHoppers: http://mountainhoppers.nl Track Detective: http://trackdetective.com Twitter: http://twitter.com/ErikBrakkee --------------090106030502030702000800 Content-Type: text/plain; name="sky2.interrupts" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sky2.interrupts" CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 0: 879 0 0 145987 0 0 0 0 IO-APIC-edge timer 1: 178 0 0 37 0 0 0 0 IO-APIC-edge i8042 8: 0 0 0 15 0 0 0 0 IO-APIC-edge rtc0 9: 1702 0 0 133 0 0 0 0 IO-APIC-fasteoi acpi 12: 0 0 0 149 0 0 0 0 IO-APIC-edge i8042 16: 0 20448 0 0 0 0 429 0 IO-APIC-fasteoi ehci_hcd:usb1, ohci1394, hda_intel, nvidia 17: 0 0 0 0 0 0 0 0 IO-APIC-fasteoi mmc0 19: 0 0 0 0 0 0 0 0 IO-APIC-fasteoi mmc1 23: 0 0 65 0 0 2113 0 0 IO-APIC-fasteoi ehci_hcd:usb2 24: 140835 0 0 0 0 0 0 0 HPET_MSI-edge hpet2 25: 0 116293 0 0 0 0 0 0 HPET_MSI-edge hpet3 26: 0 0 47034 0 0 0 0 0 HPET_MSI-edge hpet4 27: 0 0 0 109561 0 0 0 0 HPET_MSI-edge hpet5 28: 0 0 0 0 32441 0 0 0 HPET_MSI-edge hpet6 34: 4355 0 0 9520 0 0 0 0 PCI-MSI-edge ahci 35: 0 0 0 0 1 0 0 0 PCI-MSI-edge sky2@pci:0000:04:00.0 36: 59335 0 0 0 5302 0 0 0 PCI-MSI-edge iwlagn 37: 0 0 0 0 0 207 0 0 PCI-MSI-edge hda_intel NMI: 0 0 0 0 0 0 0 0 Non-maskable interrupts LOC: 1613 1517 1427 1337 1247 37604 110821 35565 Local timer interrupts SPU: 0 0 0 0 0 0 0 0 Spurious interrupts PMI: 0 0 0 0 0 0 0 0 Performance monitoring interrupts PND: 0 0 0 0 0 0 0 0 Performance pending work RES: 463 661 442 372 542 520 535 507 Rescheduling interrupts CAL: 1361 489 1329 1260 1353 1340 1240 1322 Function call interrupts TLB: 281 265 281 381 800 810 779 553 TLB shootdowns TRM: 0 0 0 0 0 0 0 0 Thermal event interrupts THR: 0 0 0 0 0 0 0 0 Threshold APIC interrupts MCE: 0 0 0 0 0 0 0 0 Machine check exceptions MCP: 9 9 9 9 9 9 9 9 Machine check polls ERR: 0 MIS: 0 --------------090106030502030702000800 Content-Type: text/x-log; name="other.log" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="other.log" LC_ALL=3DC LD_LIBRARY_PATH=3D:/usr/java/java3d/lib/i386:/opt/gnome/lib PA= TH=3D/usr/java/ant/bin:/usr/java/oxygen:/usr/java/bin:/usr/java/aspectj/b= in:/usr/java/DbVisualizer-4.1.1:/usr/java/hsqldb/bin:/usr/java/jdk/bin:/s= bin:/usr/sbin:/usr/local/sbin:/opt/kde3/sbin:/root/bin:/usr/local/bin:/us= r/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib6= 4/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin:/opt/re= al/RealPlayer:/usr/java/maven/bin:/usr/java/maven1/bin:/usr/java/apache-f= orrest/bin:/usr/java/argouml:/usr/java/jxplorer:/usr/java/ant/bin:/usr/ja= va/oxygen:/usr/java/bin:/usr/java/aspectj/bin:/usr/java/DbVisualizer-4.1.= 1:/usr/java/hsqldb/bin:/usr/java/jdk/bin:/sbin:/usr/sbin:/usr/local/sbin:= /opt/kde3/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X= 11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin= :/usr/lib/mit/sbin:/usr/lib/qt3/bin:/opt/real/RealPlayer:/usr/java/maven/= bin:/usr/java/maven1/bin:/usr/java/apache-forrest/bin:/usr/java/argouml:/= usr/java/wtk/bin:/usr/java/squirrelsql:/usr/java/pax-runner/bin:/opt/gnom= e/bin HOME=3D/root USER=3Droot LOGNAME=3Droot QEMU_AUDIO_DRV=3Dnone /usr/= bin/qemu-kvm -S -M pc-0.12 -enable-kvm -m 512 -smp 2,sockets=3D2,cores=3D= 1,threads=3D1 -name other -uuid 9f12fb27-9cc4-ae6e-733e-980a75101655 -nod= efaults -chardev socket,id=3Dmonitor,path=3D/var/lib/libvirt/qemu/other.m= onitor,server,nowait -mon chardev=3Dmonitor,mode=3Dreadline -rtc base=3Du= tc -boot dc -drive file=3D/dev/system/linux32,if=3Dnone,id=3Ddrive-ide0-0= -0,boot=3Don,format=3Draw -device ide-drive,bus=3Dide.0,unit=3D0,drive=3D= drive-ide0-0-0,id=3Dide0-0-0 -drive file=3D/opensuse/downloads/openSUSE-1= 1.3-DVD-i586.iso/openSUSE-11.3-DVD-i586.iso,if=3Dnone,media=3Dcdrom,id=3D= drive-ide0-1-0,readonly=3Don,format=3Draw -device ide-drive,bus=3Dide.1,u= nit=3D0,drive=3Ddrive-ide0-1-0,id=3Dide0-1-0 -usb -vnc 127.0.0.1:0 -vga c= irrus -device pci-assign,host=3D04:00.0,id=3Dhostdev0,bus=3Dpci.0,addr=3D= 0x4 -device virtio-balloon-pci,id=3Dballoon0,bus=3Dpci.0,addr=3D0x3=20 No IOMMU found. Unable to assign device "hostdev0" Failed to deassign device "hostdev0" : Invalid argument Error initializing device pci-assign --------------090106030502030702000800--