From: Matthias Mann Subject: PCI passthrough and full virtualization on Debian Squeeze with AMD890 FX Date: Sun, 22 May 2011 18:35:37 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from lo.gmane.org ([80.91.229.12]:54652 "EHLO lo.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752574Ab1EVSpJ (ORCPT ); Sun, 22 May 2011 14:45:09 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QODeD-00082G-Cc for kvm@vger.kernel.org; Sun, 22 May 2011 20:45:05 +0200 Received: from dslb-188-102-183-043.pools.arcor-ip.net ([188.102.183.43]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 22 May 2011 20:45:05 +0200 Received: from matman3 by dslb-188-102-183-043.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 22 May 2011 20:45:05 +0200 Sender: kvm-owner@vger.kernel.org List-ID: Hi, this is my first try to get a working full virtualized KVM guest with one real PCI device. I have the Asrock 890FX Deluxe3 with a Phenom II X4 945 which both shold have IOMMU support. I did the steps described on http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM but it seems that full virtualization doesn't work. If i do 'kvm -enable-kvm -cpu ?' i get no host CPU and PCI passthrough also fails. Assigning the PCI device went fine and with lspci i can see the PCI device in the guest but the device doesn't work. The command to run the guest was: sudo kvm -M pc-0.12 -cpu kvm64,+svm -smp 1,cores=1 -m 1G -name Debian32 -vga std -net none -enable-kvm -device pci-assign,host=04:00.0,id=ethernet -daemonize -drive file=/dev/mapper/vol-deb,if=scsi,media=disk,index=0, snapshot=off,cache=writethrough,format=raw,boot=on -boot c -chroot /home/kvmuser -runas kvmuser dmesg | grep AMD-Vi AMD-Vi: Enabling IOMMU at 0000:00:00.2 cap 0x40 AMD-Vi: device isolation enabled AMD-Vi: Lazy IO/TLB flushing enabled Some morde output of dmesg: pci-stub 0000:04:00.0: PCI INT A -> Link[LNKH] -> GSI 11 (level, low) -> IRQ 11 [ 3235.032088] pci-stub 0000:04:00.0: restoring config space at offset 0x8 (was 0xc, writing 0xcfff800c) [ 3235.032105] pci-stub 0000:04:00.0: restoring config space at offset 0x3 (was 0x0, writing 0x10) [ 3235.032116] pci-stub 0000:04:00.0: restoring config space at offset 0x1 (was 0x100000, writing 0x100503) [ 3235.500420] assign device: host bdf = 4:0:0 [ 3235.757750] kvm:3099 freeing invalid memtype cfff8000-cfff9000 [ 3302.746197] kvm:3099 freeing invalid memtype cfff9000-cfffc000 [ 3302.972095] pci-stub 0000:04:00.0: restoring config space at offset 0x8 (was 0xc, writing 0xcfff800c) [ 3302.972112] pci-stub 0000:04:00.0: restoring config space at offset 0x3 (was 0x0, writing 0x10) [ 3302.972124] pci-stub 0000:04:00.0: restoring config space at offset 0x1 (was 0x100000, writing 0x180507) [ 3302.972165] pci-stub 0000:04:00.0: PCI INT A disabled Version of KVM is 0.12.5+dfsg-5+squeeze1 Host is Debian Squeeze amd64