From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shesha Sreenivasamurthy Subject: VT-d not working for FreeBSD 9.0 guest Date: Wed, 16 May 2012 17:49:56 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE To: kvm@vger.kernel.org Return-path: Received: from plane.gmane.org ([80.91.229.3]:55484 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759246Ab2EPRzH (ORCPT ); Wed, 16 May 2012 13:55:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SUiRE-00032A-5F for kvm@vger.kernel.org; Wed, 16 May 2012 19:55:04 +0200 Received: from natint3.juniper.net ([66.129.224.36]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 May 2012 19:55:04 +0200 Received: from sheshas by natint3.juniper.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 May 2012 19:55:04 +0200 Sender: kvm-owner@vger.kernel.org List-ID: I'm using FreeBSD 9.0 (FreeBSD freebsd9-i386 9.0-RELEASE FreeBSD 9.0-RE= LEASE) as my guest OS with qemu-kvm (qemu-kvm-1.1-rc2/x86_64-softmmu/ qemu-system-x86_64) running on centos 6.2 (CentOS release 6.2) with 2.6.32-220.el6.x86_64 kernel. I am using Intel's 82599EB 10-Gigabit har= dware on the host, which I am trying to export into the FreeBSD guest OS. The= guest driver (version 2.4.4) will claim it. However, the status is shown as "no carrier" an therefore cannot ping any other system. $ ifconfig ix0 ix0: flags=3D8843 metric 0 mtu = 1500 =20 options=3D401bb ether 90:e2:ba:0d:3d:b0 inet 4.4.4.1 netmask 0xffffff00 broadcast 4.4.4.255 nd6 options=3D29 media: Ethernet autoselect status: no carrier On the host side, before the ixgbe is loaded in the guest, /proc/interr= upts show the following entry for kvm # cat /proc/interrupts | grep kvm 30: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-IO-APIC-fasteoi kvm_assigned_intx_device However, after the driver is loaded, the above entry is gone but two ne= w entries show up. # cat /proc/interrupts | grep kvm 76: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSI-edge kvm_assigned_msix_= device 77: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSI-edge kvm_assigned_msix_d= evice. To make sure, the my host configurations are fine, I loaded linux guest= , with exact same qemu params and host configurations. It works just fine. What I noticed in case linux guest is, to start with same entry is seen= in /proc/interrupts. However, after the ixgbe is loaded in the guest, I se= e only one entry instead of two as in case of freebsd. # cat /proc/interrupts | grep kvm 30: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-IO-APIC-fasteoi kvm_assigned_intx_= device # cat /proc/interrupts | grep kvm 76: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 IR-PCI-MSI-edg kvm_assigned_msi_de= vice Similar problem was reported earlier too:=20 http://comments.gmane.org/gmane.comp.emulators.kvm.devel/83806 Any ideas or advice will be highly valued Thanks, Sh=C3=A9sha.