From owner-freebsd-usb@freebsd.org Wed Aug 22 16:48:02 2018 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BA174108EB1E for ; Wed, 22 Aug 2018 16:48:01 +0000 (UTC) (envelope-from jh-fbml@snkmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 58A697E189 for ; Wed, 22 Aug 2018 16:48:01 +0000 (UTC) (envelope-from jh-fbml@snkmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 1DE06108EB1C; Wed, 22 Aug 2018 16:48:01 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0CBDC108EB1B for ; Wed, 22 Aug 2018 16:48:01 +0000 (UTC) (envelope-from jh-fbml@snkmail.com) Received: from sneak2.sneakemail.com (sneak2.sneakemail.com [64.46.156.55]) by mx1.freebsd.org (Postfix) with ESMTP id AEEE27E188 for ; Wed, 22 Aug 2018 16:48:00 +0000 (UTC) (envelope-from jh-fbml@snkmail.com) Received: from sneaked (ip-172-17-0-4.ec2.internal [172.17.0.4]) by a46fa9f5892d.localdomain (Postfix) with ESMTP id 664426000B for ; Wed, 22 Aug 2018 16:47:59 +0000 (UTC) Received: from 40.107.70.75 by mail.sneakemail.com with SMTP; 22 Aug 2018 16:47:59 -0000 Received: (sneakemail censored 11601-1534956478-23307 #7); 22 Aug 2018 16:47:59 -0000 Received: (sneakemail censored 11601-1534956478-23307 #6); 22 Aug 2018 16:47:59 -0000 Received: (sneakemail censored 11601-1534956478-23307 #5); 22 Aug 2018 16:47:59 -0000 Received: (sneakemail censored 11601-1534956478-23307 #4); 22 Aug 2018 16:47:59 -0000 Received: (sneakemail censored 11601-1534956478-23307 #3); 22 Aug 2018 16:47:59 -0000 Received: (sneakemail censored 11601-1534956478-23307 #2); 22 Aug 2018 16:47:59 -0000 Received: (sneakemail censored 11601-1534956478-23307 #1); 22 Aug 2018 16:47:59 -0000 Authentication-Results: spf=softfail (sender IP is 208.19.99.222) smtp.mailfrom=microchip.com; sneakemail.com; dkim=none (message not signed) header.d=none;sneakemail.com; dmarc=none action=none header.from=microchip.com; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning microchip.com discourages use of 208.19.99.222 as permitted sender) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-ID: <11601-1534956478-23307@sneakemail.com> Date: Wed, 22 Aug 2018 10:47:30 -0600 From: "John Hein" To: usb@freebsd.org Subject: Re: access usb device from bhyve vm In-Reply-To: References: <1634-1534897546-921625@sneakemail.com> Spamdiagnosticoutput: 1:99 Spamdiagnosticmetadata: NSPM X-Mailer: Perl5 Mail::Internet v X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2018 16:48:02 -0000 blubee blubeeme wrote at 08:42 +0800 on Aug 22, 2018: > On Wed, Aug 22, 2018 at 8:26 AM John Hein wrot= e: >=20 > Does anyone have thought about what it would take to support acc= ess to > individual usb devices "natively" from a bhyve vm=3F > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F > freebsd-usb@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebs= d.org" >=20 > I had this idea maybe a year or two years ago, there was also anothe= r guy [he worked > on the fbuffer for bhyve] who wanted to get it done but they were wa= iting on the > main guy behind the USB stack on freebsd:=A0hselasky >=20 > He was too busy to actually do any work so the project stalled. >=20 > My use case for having direct access to usb devices in a bhyve vm co= uld allow rapid > development of USB drivers for FreeBSD by sniffing the packets being= sent over USB > to the bhyve guest and reverse engineer drivers so that we can write= native drivers > for common devices that aren't supported on FreeBSD yet. >=20 > I had to put that on the back burner for a bit since there's a lot m= ore pressing > FreeBSD issues that I am working on. >=20 > What's your use case=3F My use case is more specific (and thus perhaps less of a lofty goal=3F)= =2E I want to access a usb-based fpga jtag programmer from a linux vm (specifically using a xilinx tool like "impact").