From owner-freebsd-virtualization@freebsd.org Sun Nov 5 16:32:19 2017 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6DF14E37962 for ; Sun, 5 Nov 2017 16:32:19 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 410DA178A for ; Sun, 5 Nov 2017 16:32:18 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id vA5GWFdi005896; Sun, 5 Nov 2017 08:32:15 -0800 (PST) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id vA5GWF2u005895; Sun, 5 Nov 2017 08:32:15 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201711051632.vA5GWF2u005895@pdx.rh.CN85.dnsmgr.net> Subject: Re: Onboard USB controller passthrough In-Reply-To: <6721cf76-3d40-fa2c-4b84-8882f92fd6f1@gmail.com> To: Rajil Saraswat Date: Sun, 5 Nov 2017 08:32:15 -0800 (PST) CC: freebsd-virtualization X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 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: Sun, 05 Nov 2017 16:32:19 -0000 > Hello, > > I have an Supermicro X10DRi-T motherboard which has 2 EHCI controllers > and 1 xHCI controller. I want to pass one of the EHCI controller to the > VM running Ubuntu. Unfortunately, the VM immediately quits when i pass > the USB controller. I am using vm-bhye to manage the VM's running on > FreeBSD 11.1. > > The controllers looks like this > > # pciconf -l -BbcV ppt2@pci0:0:26:0 > ppt2@pci0:0:26:0: class=0x0c0320 card=0x72708086 chip=0x8d2d8086 > rev=0x05 hdr=0x00 > bar [10] = type Memory, range 32, base 0xc6134000, size 1024, enabled ^^^^^^^^^^^^ > cap 01[50] = powerspec 2 supports D0 D3 current D0 > cap 0a[58] = EHCI Debug Port at offset 0xa0 in map 0x14 > cap 13[98] = PCI Advanced Features: FLR TP > > Any idea how to fix this? Do you get an error about a BAR that is not page sized, or not paged aligned? At this time the bhyve passthrough code can only deal with things that are page sized and paged aligned. The above device has a 1k memory region, that is only a 1/4 page. I do not know if there is any way to "fix" this, as it is a limitation of the IOMMU hardware. -- Rod Grimes rgrimes@freebsd.org