From owner-freebsd-virtualization@freebsd.org Mon Jul 11 21:52:25 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 8CC9DB92125 for ; Mon, 11 Jul 2016 21:52:25 +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 4E7B01341 for ; Mon, 11 Jul 2016 21:52:25 +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 DB8D720A40C4 for ; Tue, 12 Jul 2016 07:52:16 +1000 (AEST) Received: from localhost (iredmail.onthenet.com.au [127.0.0.1]) by iredmail.onthenet.com.au (Postfix) with ESMTP id D1BCE2810BA for ; Tue, 12 Jul 2016 07:52:16 +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 lbChwRffaV14 for ; Tue, 12 Jul 2016 07:52:16 +1000 (AEST) Received: from Peters-MacBook-Pro-2.local (unknown [96.82.80.65]) by iredmail.onthenet.com.au (Postfix) with ESMTPSA id A4CF2280901; Tue, 12 Jul 2016 07:52:13 +1000 (AEST) Subject: Re: [Differential] D7185: Add virtio-console support to bhyve To: Jakub Klama , Paul Vixie References: <5783D6FF.7010107@redbarn.org> Cc: freebsd-virtualization@freebsd.org From: Peter Grehan Message-ID: <18630e8f-6576-b613-1eae-07a00eca7b91@freebsd.org> Date: Mon, 11 Jul 2016 14:52:16 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=T//OdLCQ c=1 sm=1 tr=0 a=A6CF0fG5TOl4vs6YHvqXgw==:117 a=mwgbnDbW7alINpy3vhoKyg==:17 a=IkcTkHD0fZMA:10 a=cAmyUtKerLwA:10 a=NEAV23lmAAAA:8 a=ev7ODb581xfm2AbaXMQA:9 a=Bn2pgwyD2vrAyMmN8A2t:22 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.22 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, 11 Jul 2016 21:52:25 -0000 Hi Jakub, > The purpose of virtio-console is to create arbitrary bidirectional, > host-to-guest communication channels that bypass guest's network > stack (don't require working networking in the guest). Could virtio-vsock be a better solution for this ? Docker's hyperkit has an implementation, though it appears Linux guest support is very recent. https://github.com/docker/hyperkit/blob/af-vsock/src/pci_virtio_sock.c > But even for > using it as the system console, it's a bit better than emulated > serial port, because the protocol supports passing console resize > events from host to guest. It makes for an excellent serial port since it uses descriptor rings for data transfer, but the lack of a simple polled-mode operation (unless the emergency support is used) isn't the best for a system console. later, Peter.