From owner-freebsd-stable@FreeBSD.ORG Tue Aug 17 15:18:19 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 857AD1065679 for ; Tue, 17 Aug 2010 15:18:19 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id 38FF48FC1C for ; Tue, 17 Aug 2010 15:18:18 +0000 (UTC) Received: by qwg5 with SMTP id 5so7108895qwg.13 for ; Tue, 17 Aug 2010 08:18:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=XbD5/zhSSOgpEE8uYnhYMCtHsNKExPEd1IB9uNrFKa4=; b=jtT1TxYn+renv/HfwRBSXHjbCxqyr3X0YaEhwildbFBHW1WeBKdOmMF0moioScFocH 4hboPSL54VkUvEel4px/diGvwUaRuulbS0QIZMiQqnTmg+hVj4aA8+1uaDl8wOXY5WrG YJU66/Zc3lL1Kq35DZxF/mZlh5Pi+DNFlSaDg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=VSHwB4LnPOQZg2WcnHhhZ26tuUuLWxjE7FsBxVT3zsiqDLTpxjUV7az2DQAo/94Dih PnnhGT4zIgQ7hqfgNx5IoTSEDf5IDYI9lLQFnvAxUIv26Ouszw+7b+qrhpdD/gFQS4ft IbpNNFfmxFiZ1hWh5jIXZ1dDm6T9qW4zJMKIc= MIME-Version: 1.0 Received: by 10.224.72.195 with SMTP id n3mr4429053qaj.152.1282058298025; Tue, 17 Aug 2010 08:18:18 -0700 (PDT) Received: by 10.229.31.12 with HTTP; Tue, 17 Aug 2010 08:18:17 -0700 (PDT) In-Reply-To: References: <201006301726.o5UHQl7n011935@svn.freebsd.org> <4C2BBC1F.6020405@elischer.org> Date: Tue, 17 Aug 2010 19:18:17 +0400 Message-ID: From: pluknet To: Jack Vogel Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Jack F Vogel , freebsd-stable Subject: Re: svn commit: r209611 - head/sys/dev/e1000 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2010 15:18:19 -0000 On 1 July 2010 02:13, Jack Vogel wrote: > On Wed, Jun 30, 2010 at 2:50 PM, Julian Elischer wro= te: > >> On 6/30/10 10:26 AM, Jack F Vogel wrote: >> >>> Author: jfv >>> Date: Wed Jun 30 17:26:47 2010 >>> New Revision: 209611 >>> URL: http://svn.freebsd.org/changeset/base/209611 >>> >>> Log: >>> =A0 SR-IOV support added to igb >>> >>> =A0 What this provides is support for the 'virtual function' >>> =A0 interface that a FreeBSD VM may be assigned from a host >>> =A0 like KVM on Linux, or newer versions of Xen with such >>> =A0 support. >>> >>> =A0 When the guest is set up with the capability, a special >>> =A0 limited function 82576 PCI device is present in its virtual >>> =A0 PCI space, so with this driver installed in the guest that >>> =A0 device will be detected and function nearly like the bare >>> =A0 metal, as it were. >>> >>> =A0 The interface is only allowed a single queue in this configuration >>> =A0 however initial performance tests have looked very good. >>> >>> =A0 Enjoy!! >>> >>> >> do these extra devices turn up in a standard ifconfig output? >> in other words, can we assign them to jails using vimage? >> >> > They only show up if configured in the PF host, for instance if using Lin= ux > and KVM (I did develop and test > with Fedora 13) you must load the igb driver there specifying that you wa= nt > vf's created and how many. > Next in the management of the guest you need to assign one of these vf > devices to the guest. After you > do all that and load this igb driver then yes, it will look just like a > standard igbX device. > Hi, Jack. I set up qemu-kvm on openSUSE 11.3 with 82576 PCI device as you described. Guest fails to attach with: igb0: mem 0xf2060000-0xf2063fff,0xf2064000-0xf2067fff at device 5.0 on pci0 igb0: Unable to allocate bus resource: interrupt device_attach: igb0 attach returned 6 igb0@pci0:0:5:0: class=3D0x020000 card=3D0xa03c8086 chip=3D0x10ca808= 6 rev=3D0x01 hdr=3D0x00 vendor =3D 'Intel Corporation' class =3D network subclass =3D ethernet cap 11[40] =3D MSI-X supports 3 messages in map 0x1c Did I missed something? --=20 wbr, pluknet