From owner-freebsd-virtualization@freebsd.org Mon Oct 24 22:33:55 2016 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 62BEFC1F81D for ; Mon, 24 Oct 2016 22:33:55 +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 2703BF56 for ; Mon, 24 Oct 2016 22:33:54 +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 B8BB120A40F2 for ; Tue, 25 Oct 2016 08:33:32 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id B1BBD280992 for ; Tue, 25 Oct 2016 08:33:32 +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 10026) with ESMTP id 5Q79cgQdvvMI for ; Tue, 25 Oct 2016 08:33:32 +1000 (AEST) Received: from Peters-MacBook-Pro-2.local (96-82-80-65-static.hfc.comcastbusiness.net [96.82.80.65]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id DA5F528095E; Tue, 25 Oct 2016 08:33:29 +1000 (AEST) Subject: Re: bhyve as x64 AMP platform? To: g4@novadsp.com References: <007201d22d31$88c38c90$9a4aa5b0$@novadsp.com> Cc: freebsd-virtualization@freebsd.org From: Peter Grehan Message-ID: Date: Mon, 24 Oct 2016 15:33:39 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <007201d22d31$88c38c90$9a4aa5b0$@novadsp.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=Jq6BlIwC c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=mwgbnDbW7alINpy3vhoKyg==:17 a=N659UExz7-8A:10 a=CH0kA5CcgfcA:10 a=NEAV23lmAAAA:8 a=VQlEQyJxKiBB5XBqbXsA:9 a=pILNOxqGKmIA:10 a=L4MhrQmrAgYA:10 a=Bn2pgwyD2vrAyMmN8A2t:22 wl=host:3 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: Mon, 24 Oct 2016 22:33:55 -0000 Hi Jerry, > The Linux Jailhouse (https://github.com/siemens/jailhouse) project is one > means of implementing an AMP solution for x64. Does bhyve offers similar > possibilities? Yes, indirectly: > In this case the guest can be viewed as a single threaded for(;;) loop that > polls the USB3 controller, with the guest locked to a single core etc. > (Practically, effectively I think, a subset of the ELF loader code in the > fork here: https://github.com/g40/bhyveosvload) For these type of use-cases, you would pin a guest to a single core, and use cpusets to prevent FreeBSD from running on that core. The For these type of use-cases, you would pin the guest to a single core using the bhyve '-p' option, and use the cpuset command to prevent FreeBSD itself from running on that core. > The key question, I think, revolves around PCI passthru capabilities. Is it > possible to isolate and map specific hardware into the guest whilst running > under the hypervisor? > In this case it would be highly advantageous _not_ to > virtualize the XHCI controller but I am not sure if this can be done within > bhyve? Stock PCI passthru works this way. later, Peter.