From owner-freebsd-virtualization@freebsd.org Tue Dec 22 03:48:42 2015 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 F29E4A4C127 for ; Tue, 22 Dec 2015 03:48:42 +0000 (UTC) (envelope-from trentnthompson@gmail.com) Received: from mail-lb0-x230.google.com (mail-lb0-x230.google.com [IPv6:2a00:1450:4010:c04::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F2281787 for ; Tue, 22 Dec 2015 03:48:42 +0000 (UTC) (envelope-from trentnthompson@gmail.com) Received: by mail-lb0-x230.google.com with SMTP id oh2so24536339lbb.3 for ; Mon, 21 Dec 2015 19:48:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ybqEfvYClFZz8s4700sXflQvIC27rZKVfRMXFLgNaCo=; b=WEdajvW9DCKi/hMhqGx3wM7MtlEOO+hQxrUiOT0DeRn1DkRYMBa7e3CZfxpDwobCWK b/sg7mjhfCSlRY8lM9U05d0fksqXAK5N/5+tqqbZidtjBnvWBH3mc6jnnCiz7QoHGfXW amsLk58osqBR/x4I9LbYIq3iO8CiK0R+ST7xRu90gFvztxb2mi9UqS6hLmKxHmNeFTwN 5c8u5IVIDZ3BXLg8esh2B9YTYpdz7i8b19Hm/dPR+haXpXB+nTC8jECUOdr1WbTpAWcT dYA/xwotRlaDvVu9jE3cTpBkHOTlnr7DOI6oC0/fixCovhtdHDLv8YCxq86kPjs3i1vL hAPA== MIME-Version: 1.0 X-Received: by 10.112.160.202 with SMTP id xm10mr6176829lbb.22.1450756120472; Mon, 21 Dec 2015 19:48:40 -0800 (PST) Received: by 10.25.198.2 with HTTP; Mon, 21 Dec 2015 19:48:40 -0800 (PST) In-Reply-To: <5678BECC.7090200@freebsd.org> References: <20151220045821.GG22018@dendrobates.araler.com> <56763672.3090207@freebsd.org> <20151220051015.GH22018@dendrobates.araler.com> <56763A0B.8010802@freebsd.org> <20151220053644.GI22018@dendrobates.araler.com> <20151220215240.GB4064@dendrobates.araler.com> <5678BECC.7090200@freebsd.org> Date: Mon, 21 Dec 2015 20:48:40 -0700 Message-ID: Subject: Re: {Spam?} Re: bhyve PCI pass-through to Linux guest From: Trent Thompson To: Sergey Manucharian Cc: FreeBSD virtualization Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 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: Tue, 22 Dec 2015 03:48:43 -0000 Sergey, I've seen some success passing through devices that have their driver disabled in the FreeBSD kernel. See the USB 3.0 pass through that Eresia set up in iohyve. https://github.com/pr1ntf/iohyve/wiki/USB-3.0-PCI-Controller-Pass-through When he disabled the kernel module in FreeBSD, he can then use the device in the bhyve guest. Unfortunately, I have not worked on this specific problem myself, and cannot speak for this solution. -Trent On Mon, Dec 21, 2015 at 8:09 PM, Peter Grehan wrote: > Hi Sergey, > > This is pretty reproducible: >> >> I pass trough a PCI device (USB controller) to a Linux guest. It works >> properly. Then I halt the VM, make sure that bhyve destroyed it and run >> Windows guest with the same PCI device passed-through. >> >> Windows device manager does show the device, however, e.g. a flash drive >> plugged in is not presented to Windows, instead it's being processed by >> FreeBSD. >> >> After that it does not work in Linux guest as well. Kernel module (vmm) >> unloading and reloading does not help. >> > > The flash drive being processed by FreeBSD would indicate that it has > ownership of the device. Would you be able to try a 'pciconf -vl' after the > Linux guest exists, and after the Windows guest exits ? > > later, > > Peter. > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to " > freebsd-virtualization-unsubscribe@freebsd.org" >