From owner-freebsd-virtualization@freebsd.org Mon Jul 11 21:59:17 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 23B92B9230A for ; Mon, 11 Jul 2016 21:59:17 +0000 (UTC) (envelope-from jakub.klama@uj.edu.pl) Received: from mail1.uj.edu.pl (mail1.uj.edu.pl [149.156.89.193]) by mx1.freebsd.org (Postfix) with ESMTP id E0A2017CE; Mon, 11 Jul 2016 21:59:16 +0000 (UTC) (envelope-from jakub.klama@uj.edu.pl) MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Received: from [192.168.0.2] ([89.70.28.46]) by mta.uoks.uj.edu.pl (Oracle Communications Messaging Server 7u4-27.01 (7.0.4.27.0) 64bit (built Aug 30 2012)) with ESMTPSA id <0OA6007ZP7QQ4K20@mta.uoks.uj.edu.pl>; Mon, 11 Jul 2016 23:59:15 +0200 (CEST) Subject: Re: [Differential] D7185: Add virtio-console support to bhyve From: Jakub Klama In-reply-to: <18630e8f-6576-b613-1eae-07a00eca7b91@freebsd.org> Date: Mon, 11 Jul 2016 23:59:14 +0200 Cc: Paul Vixie , freebsd-virtualization@freebsd.org Content-transfer-encoding: quoted-printable Message-id: References: <5783D6FF.7010107@redbarn.org> <18630e8f-6576-b613-1eae-07a00eca7b91@freebsd.org> To: Peter Grehan X-Mailer: Apple Mail (2.3094) 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:59:17 -0000 > Wiadomo=C5=9B=C4=87 napisana przez Peter Grehan w = dniu 11.07.2016, o godz. 23:52: >=20 > Hi Jakub, >=20 >> 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). >=20 > 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 virtio-vsock is indeed nice, but guest support is virtually missing. = Also, I do think a simple, bidirectional host-to-guest pipe suits just = fine for most scenarios where hypervisor wants to control guest or vice = versa. Let's do simple things first. >> 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. >=20 > 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. Let me put emergency write support in there. It's just few lines of = code. Jakub=