From owner-freebsd-virtualization@FreeBSD.ORG Thu Feb 12 23:07:16 2015 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7D06B6E5 for ; Thu, 12 Feb 2015 23:07:16 +0000 (UTC) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 39A98B13 for ; Thu, 12 Feb 2015 23:07:15 +0000 (UTC) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id DE902281111 for ; Fri, 13 Feb 2015 09:07:12 +1000 (EST) X-Amavis-Modified: Mail body modified (using disclaimer) - iredmail.onthenet.com.au X-Virus-Scanned: amavisd-new at iredmail.onthenet.com.au Received: from iredmail.onthenet.com.au ([127.0.0.1]) by localhost (iredmail.onthenet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i7U_YtZkGEmE for ; Fri, 13 Feb 2015 09:07:12 +1000 (EST) Received: from Peters-MacBook-Pro.local (unknown [64.245.0.210]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id 85E5B280F56; Fri, 13 Feb 2015 09:07:09 +1000 (EST) Message-ID: <54DD321C.80808@freebsd.org> Date: Thu, 12 Feb 2015 15:07:08 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Philipp Wuensche Subject: Re: bhyve and PCI Passthrough a USB Controller References: <54DC8B98.4090902@h3q.com> In-Reply-To: <54DC8B98.4090902@h3q.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 12 Feb 2015 23:07:16 -0000 Hi Philipp, > I then try to bind the controller to the VM using the bhyve command > option "-s 7,passthru,7/0/0". The loader starts but then bhyve exits with: > > "Unsupported MSI-X configuration: 7/0/0" This error message is when bhyve sees the MSI-x table and PBA (pending bit-array) regions being in the same physical page. It's perhaps overly cautious since we don't implement the PBA in any case. Would you be willing to try a patch that relaxes that check ? Another option for bhyve is to hide the MSI-x capability from the guest, which should hopefully fall back to using MSI. > Is there anything similar with bhyve to get the controller working or > should I start hunting for a different controller that might work as on > the VMware mailinglist suggested? > > Any suggestions for known to be working USB Controllers with bhyve and > PCI passthrough? I've not tried with any discrete cards, but any XHCI controller that has the table and PBA regions either in separate BARs or not in the same 4K region (recommended behaviour in the PCIe spec) should be fine. later, Peter,