From owner-freebsd-virtualization@freebsd.org Sun Dec 20 21:52:44 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 7EFEBA4EEC7 for ; Sun, 20 Dec 2015 21:52:44 +0000 (UTC) (envelope-from sm@ara-ler.com) Received: from mail-ig0-x243.google.com (mail-ig0-x243.google.com [IPv6:2607:f8b0:4001:c05::243]) (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 09D271D18 for ; Sun, 20 Dec 2015 21:52:43 +0000 (UTC) (envelope-from sm@ara-ler.com) Received: by mail-ig0-x243.google.com with SMTP id rx7so3552577igc.3 for ; Sun, 20 Dec 2015 13:52:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ara-ler-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=eyDoDqia8XGJux2J0eB+YfqBUXjckIJ8ixws4VWVqbg=; b=ybmbDukMiIzz1SxWoO7HC8A8iQl02msrz5SJzcJHtwp3Fp/eyswpfrGAZaEbZGlB1w i29hRJYaPiB/4ILI0UcRGonPQX4u84rn+xymB+LqUTRfVEHcXMTYtMfoHBukoIN0FbBR VQrz3yEezYBBvpRY2v6I1ioVbRe7EdBW9JbOm+EeUCk5O+ajhSuabOwwN9XpB7Ron9AS mg17emLhfAtFCJTCbawkrrLhlLhfk6RLC7oVh60uGAaFDU0+VjVvSh23ke+PYgGeaKZX 59Epr+h/ceHrbG5S4vZxwh6FCMytGIi/yy0sYodNdm6ZejAko3o+xqvJTXnKSyeWK7Mm 47cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=eyDoDqia8XGJux2J0eB+YfqBUXjckIJ8ixws4VWVqbg=; b=YZ+5lFOOlUt3VyUCeYOnXZu2ZQWiDNhAqkBfobbFT4KAO+v+De2G3qVZjuUESXjZYS kAP9pWV7fJoHUp3tf4Z3xQtPqImtosLyXk8S0WWxgqEiXA8qN7716cO6dd+MRZgFG+Zf T3i5N+0TLkFQTEyWi0amfcCDifwZUteTfPahf4iEZHURf4FICQzn2ZeV1qs8JDbOMGzs 7WTyjBxFuONpf4UMAkVhBHHbOjGUz8exTqbAi8fB18gWMnVTE8hGMoREhmKzrs+P99Ql 3km1jfI3sImShFcR3QPaWHx9Lr7qUsJQ2lj2yTBWXztNpLMbsTp3P8ghhSz7NUJcBk2X YaPw== X-Gm-Message-State: ALoCoQkht8THU62LrTPXjCaSm99GwYTAcJB1AipG4ux2+CCdlKNQNPLNAdM4832JwyPUGAkqpUdjlzsT9TouKnf1nxEUps8wQQ== X-Received: by 10.50.124.101 with SMTP id mh5mr15811425igb.53.1450648363153; Sun, 20 Dec 2015 13:52:43 -0800 (PST) Received: from dendrobates.araler.com (70-59-19-232.hlrn.qwest.net. [70.59.19.232]) by smtp.gmail.com with ESMTPSA id 198sm6651661ioe.30.2015.12.20.13.52.42 for (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Dec 2015 13:52:42 -0800 (PST) Date: Sun, 20 Dec 2015 14:52:40 -0700 From: Sergey Manucharian To: FreeBSD virtualization Subject: Re: bhyve PCI pass-through to Linux guest Message-ID: <20151220215240.GB4064@dendrobates.araler.com> References: <20151220045821.GG22018@dendrobates.araler.com> <56763672.3090207@freebsd.org> <20151220051015.GH22018@dendrobates.araler.com> <56763A0B.8010802@freebsd.org> <20151220053644.GI22018@dendrobates.araler.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151220053644.GI22018@dendrobates.araler.com> User-Agent: Mutt/1.5.24 (2015-08-30) 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: Sun, 20 Dec 2015 21:52:44 -0000 Excerpts from Sergey Manucharian's message from Sat 19-Dec-15 22:36: > Excerpts from Peter Grehan's message from Sun 20-Dec-15 15:18: > > >>> # bhyve -S ... -s 7,passthru,0/20/0 ... > > > > That's the bhyve command line (if that's the one you meant). You also > > have to pass '-S' when invoking grub-bhyve, since that's when the memory > > resources are created. > > Works fine now. 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. Of course, I never run two guests with the same PCI pass-through device. Thanks for advices, Sergey