From owner-freebsd-virtualization@freebsd.org Tue Dec 22 03:09:11 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 A20D2A4E732 for ; Tue, 22 Dec 2015 03:09:11 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 64E981954 for ; Tue, 22 Dec 2015 03:09:11 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from iredmail.onthenet.com.au (iredmail.onthenet.com.au [203.13.68.150]) by alto.onthenet.com.au (Postfix) with ESMTPS id D45DB20B4BB4 for ; Tue, 22 Dec 2015 13:09:02 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id CDCEB282026 for ; Tue, 22 Dec 2015 13:09:02 +1000 (AEST) X-Amavis-Modified: Mail body modified (using disclaimer) - 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 1BCTR5KG2Tqh for ; Tue, 22 Dec 2015 13:09:02 +1000 (AEST) Received: from Peters-MacBook-Pro.local (CPE-60-226-3-158.wrcz1.cha.bigpond.net.au [60.226.3.158]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id 4285528098C; Tue, 22 Dec 2015 13:09:00 +1000 (AEST) Subject: Re: {Spam?} Re: bhyve PCI pass-through to Linux guest To: Sergey Manucharian 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> Cc: FreeBSD virtualization From: Peter Grehan Message-ID: <5678BECC.7090200@freebsd.org> Date: Tue, 22 Dec 2015 13:09:00 +1000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151220215240.GB4064@dendrobates.araler.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=B9IZqLZM c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=OIgypsHbAvIw1X5S2PUfDQ==:17 a=3FMX7HLxAAAA:8 a=6I5d2MoRAAAA:8 a=Sv2sojjTAAAA:8 a=N659UExz7-8A:10 a=wUQvQvOEmiQA:10 a=_OFQ3fp2lvZQrjQQJzYA:9 a=pILNOxqGKmIA:10 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:09:11 -0000 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.