From mboxrd@z Thu Jan 1 00:00:00 1970 From: "SourceForge.net" Subject: [ kvm-Bugs-2896992 ] Intel PCI NIC passthrough problem Date: Wed, 18 Nov 2009 04:58:51 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To: noreply@sourceforge.net Return-path: Received: from ch3.sourceforge.net ([216.34.181.60]:44265 "EHLO ch3.sourceforge.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756294AbZKRE6q (ORCPT ); Tue, 17 Nov 2009 23:58:46 -0500 Sender: kvm-owner@vger.kernel.org List-ID: Bugs item #2896992, was opened at 2009-11-13 05:58 Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2896992&group_id=180599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Sergey Cheperis () Assigned to: Nobody/Anonymous (nobody) Summary: Intel PCI NIC passthrough problem Initial Comment: Host: - CPU Core2Duo E6300, Intel q45 chipset, VT-d enabled - Ubuntu 9.10 x86_64, kernel 2.6.31.4 recompiled with CONFIG_DMAR=y and CONFIG_INTR_REMAP=y according to http://www.linux-kvm.org/page/How_to_assign_devices_with_VT-d_in_KVM - in-kernel kvm module - qemu-kvm commit c04b2aebf50c7d8cba883b86d1b872ccfc8f2249 - intel_iommu=igfx_off - Qemu command line: /usr/local/bin/qemu-system-x86_64 -m 512 -k en-us -drive if=ide,file=/dev/server2/ubuntu,boot=on -cdrom /home/install/Linux/i386/ubuntu-9.10-desktop-i386.iso -boot d -vga std -pcidevice host=01:00.0 -net none -vnc :15 -daemonize Guest OSes: - Ubuntu 9.10 live CD i386, Windows Server 2003 i386, Windows Server 2008 x86_64, MacOS X 10.5.x i386 The device on the host: 01:00.0 Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02) Subsystem: Intel Corporation Device 002e Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- Comment By: Sergey Cheperis () Date: 2009-11-18 07:58 Message: Compiled latest kvm-git. Now I do not try igfx_off as it is not needed to run X anymore. I've found out that #2 is actually a combination two different issues: 2a) Sometimes (randomly) the card just do not work with none of the OS's. Same symptoms as described - detects cable but no traffic. This correlates with DMAR failures accessing the PCI bridge. Most of the time the card works with Windows and MacOS X guests, and when it works, there are no DMAR messages. 2b) The card just never works with the Ubuntu guest. All counters are at 0's, interrupt counter in /proc/interrupts is at 0. In some runs, there were DMAR fault messages, at some there were none, so I now assume DMAR faults are not the reason of this issue. ---------------------------------------------------------------------- Comment By: Sergey Cheperis () Date: 2009-11-17 18:03 Message: Update. Tested with three different Intel cards: PCI (e1000), PCI-e (e1000e) and the onboard one (e1000e). Actually, it turned out to be two different issues. 1) With intel_iommu=igfx_off, none of them are working. Did I misunderstood the purpose of igfx_off? I thought it only disables IOMMU for graphics devices. With intel_iommu=on, all of them work, but... 2) ...with the e1000 it does not work when the guest is Linux. The host prints messages telling about a DMAR fault accessing the PCIe-to-PCI bridge device. I assume it may be a bad behavior of the e1000 linux driver which tries to access the device parent bridge while it is not allowed to. Should I file a bug on the e1000 driver? This card works however with Windows and MacOS when intel_iommu=on. ---------------------------------------------------------------------- Comment By: Sergey Cheperis () Date: 2009-11-17 02:02 Message: qemu-kvm-0.11 stable - same result. Anybody managed to passthrough an Intel PCI/PCI-e NIC? ---------------------------------------------------------------------- Comment By: Sergey Cheperis () Date: 2009-11-13 21:05 Message: Note: with intel_iommu=on, same problem. ---------------------------------------------------------------------- Comment By: Sergey Cheperis () Date: 2009-11-13 05:59 Message: I should note that I also tried to pass through the built-in Intel Ethernet adapter of this board and got the same. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2896992&group_id=180599