From owner-freebsd-virtualization@FreeBSD.ORG Sat Nov 29 14:01:46 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DE2F547E for ; Sat, 29 Nov 2014 14:01:46 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8989BB86 for ; Sat, 29 Nov 2014 14:01:46 +0000 (UTC) Received: from moby.local ([109.193.238.174]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MNZ9u-1Xof7Z0z8s-007C4B; Sat, 29 Nov 2014 15:01:39 +0100 Message-ID: <5479D1BE.2010106@gmx.com> Date: Sat, 29 Nov 2014 15:01:34 +0100 From: Nikos Vassiliadis User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Craig Rodrigues Subject: Re: bhyve: Unsupported MSI-X configuration: 2/0/0 References: <5478E4C4.3080203@gmx.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:43iBU4psmk7sWhtIkhsq+PHxoXBk7ZEgDr0FYuBwBYj+YVFC4gc P4kFwv1120zprFpK9XR6R9tgtjY3LcTaCLjVAXR3bJ7CgIFLV4cmw0/16pmmAyWwE1HKXgF riA8G549uRd2A/R1mxEkEouGs+cC9Wukr4VK7Blow4oiw6w0CJUxAmw9lIiDQ8C+AgowlgV i5su8zclITvy9Nc8W7ORw== X-UI-Out-Filterresults: notjunk:1; Cc: "freebsd-virtualization@freebsd.org" X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2014 14:01:47 -0000 On 11/29/14 02:05, Craig Rodrigues wrote: > On Fri, Nov 28, 2014 at 1:10 PM, Nikos Vassiliadis > wrote: > > Hi, > > I am trying to use PCI passthrough to pass the bge device to a guest > but I am doing something wrong. I have tried several combinations of > pptdevs like "2/0/0 2/0/1 2/0/2 2/0/3" but it always fails on 2/0/0. > Any ideas what I could try? > > > Did you read this: https://wiki.freebsd.org/bhyve/pci_passthru ? > > After following those instructions, what is the output of pciconf -l -v > before and after enabling PCI passthru? > On the host and in the guest? Before loading vmm.ko: > hostb0@pci0:0:0:0: class=0x060000 card=0x064b1025 chip=0x01548086 rev=0x09 hdr=0x00 > pcib1@pci0:0:1:0: class=0x060400 card=0x064b1025 chip=0x01518086 rev=0x09 hdr=0x01 > vgapci1@pci0:0:2:0: class=0x030000 card=0x064b1025 chip=0x01668086 rev=0x09 hdr=0x00 > none0@pci0:0:22:0: class=0x078000 card=0x064b1025 chip=0x1e3a8086 rev=0x04 hdr=0x00 > ehci0@pci0:0:26:0: class=0x0c0320 card=0x064b1025 chip=0x1e2d8086 rev=0x04 hdr=0x00 > hdac0@pci0:0:27:0: class=0x040300 card=0x064b1025 chip=0x1e208086 rev=0x04 hdr=0x00 > pcib2@pci0:0:28:0: class=0x060400 card=0x064b1025 chip=0x1e108086 rev=0xc4 hdr=0x01 > pcib3@pci0:0:28:1: class=0x060400 card=0x064b1025 chip=0x1e128086 rev=0xc4 hdr=0x01 > ehci1@pci0:0:29:0: class=0x0c0320 card=0x064b1025 chip=0x1e268086 rev=0x04 hdr=0x00 > isab0@pci0:0:31:0: class=0x060100 card=0x064b1025 chip=0x1e578086 rev=0x04 hdr=0x00 > ahci0@pci0:0:31:2: class=0x010601 card=0x064b1025 chip=0x1e038086 rev=0x04 hdr=0x00 > none1@pci0:0:31:3: class=0x0c0500 card=0x064b1025 chip=0x1e228086 rev=0x04 hdr=0x00 > vgapci0@pci0:1:0:0: class=0x030000 card=0x06911025 chip=0x114010de rev=0xa1 hdr=0x00 > none2@pci0:2:0:0: class=0x020000 card=0x06471025 chip=0x16b514e4 rev=0x10 hdr=0x00 > none3@pci0:2:0:1: class=0x080501 card=0x06471025 chip=0x16bc14e4 rev=0x10 hdr=0x00 > none4@pci0:2:0:2: class=0x088000 card=0x06471025 chip=0x16be14e4 rev=0x10 hdr=0x00 > none5@pci0:2:0:3: class=0x088000 card=0x06471025 chip=0x16bf14e4 rev=0x10 hdr=0x00 > none6@pci0:3:0:0: class=0x028000 card=0xe042105b chip=0x472714e4 rev=0x01 hdr=0x00 After loading vmm.ko: > hostb0@pci0:0:0:0: class=0x060000 card=0x064b1025 chip=0x01548086 rev=0x09 hdr=0x00 > pcib1@pci0:0:1:0: class=0x060400 card=0x064b1025 chip=0x01518086 rev=0x09 hdr=0x01 > vgapci1@pci0:0:2:0: class=0x030000 card=0x064b1025 chip=0x01668086 rev=0x09 hdr=0x00 > none0@pci0:0:22:0: class=0x078000 card=0x064b1025 chip=0x1e3a8086 rev=0x04 hdr=0x00 > ehci0@pci0:0:26:0: class=0x0c0320 card=0x064b1025 chip=0x1e2d8086 rev=0x04 hdr=0x00 > hdac0@pci0:0:27:0: class=0x040300 card=0x064b1025 chip=0x1e208086 rev=0x04 hdr=0x00 > pcib2@pci0:0:28:0: class=0x060400 card=0x064b1025 chip=0x1e108086 rev=0xc4 hdr=0x01 > pcib3@pci0:0:28:1: class=0x060400 card=0x064b1025 chip=0x1e128086 rev=0xc4 hdr=0x01 > ehci1@pci0:0:29:0: class=0x0c0320 card=0x064b1025 chip=0x1e268086 rev=0x04 hdr=0x00 > isab0@pci0:0:31:0: class=0x060100 card=0x064b1025 chip=0x1e578086 rev=0x04 hdr=0x00 > ahci0@pci0:0:31:2: class=0x010601 card=0x064b1025 chip=0x1e038086 rev=0x04 hdr=0x00 > none1@pci0:0:31:3: class=0x0c0500 card=0x064b1025 chip=0x1e228086 rev=0x04 hdr=0x00 > vgapci0@pci0:1:0:0: class=0x030000 card=0x06911025 chip=0x114010de rev=0xa1 hdr=0x00 > ppt0@pci0:2:0:0: class=0x020000 card=0x06471025 chip=0x16b514e4 rev=0x10 hdr=0x00 > ppt1@pci0:2:0:1: class=0x080501 card=0x06471025 chip=0x16bc14e4 rev=0x10 hdr=0x00 > ppt2@pci0:2:0:2: class=0x088000 card=0x06471025 chip=0x16be14e4 rev=0x10 hdr=0x00 > ppt3@pci0:2:0:3: class=0x088000 card=0x06471025 chip=0x16bf14e4 rev=0x10 hdr=0x00 > ppt4@pci0:3:0:0: class=0x028000 card=0xe042105b chip=0x472714e4 rev=0x01 hdr=0x00 Then I start "bhyve ... -s 10,passthru,2/0/0 ..." and it spits: "Unsupported MSI-X configuration: 2/0/0" and quits. This happens *only* with 2/0/0, that is the bge device. When I try to passthrough this: > none6@pci0:3:0:0: class=0x028000 card=0xe042105b chip=0x472714e4 rev=0x01 hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'BCM4313 802.11b/g/n Wireless LAN Controller' > class = network it goes further, bhyve starts and the device is passed to the host but I cannot use it from the VM. Actually my goal is to use the wifi adapter from a VM. The bge device is just testing and I thought I should report it/ask about it.