Date: Mon, 11 Jul 2016 17:39:25 -0700 From: Paul Vixie <paul@redbarn.org> To: Jakub Klama <jakub.klama@uj.edu.pl> Cc: freebsd-virtualization@freebsd.org Subject: Re: [Differential] D7185: Add virtio-console support to bhyve Message-ID: <57843C3D.80102@redbarn.org> In-Reply-To: <577FFDDF-7EC5-4143-AA1B-858BA8C3287F@uj.edu.pl> References: <differential-rev-PHID-DREV-h346qsj6dfo524z3qnfy-req@FreeBSD.org> <5783D6FF.7010107@redbarn.org> <FCF5C7E6-2BCF-4729-BC2B-788E1FE74BCE@uj.edu.pl> <5783E2FE.1040309@redbarn.org> <EDFB1E4C-755F-4D2F-808C-E45A31C3EE2C@uj.edu.pl> <5783E64B.9010608@redbarn.org> <6B5AEBF8-98B0-4031-A3E3-A1EBC8B4B763@uj.edu.pl> <57841572.7060903@redbarn.org> <577FFDDF-7EC5-4143-AA1B-858BA8C3287F@uj.edu.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
Jakub Klama wrote: > It doesn't speak any protocol. virtio-console is a pipe. it pushes > bytes back and forth. Name is indeed unfortunate, it should have > been called virtio-pipe, but virtio-console is how the virtio > specification calls it. if it's never going to appear as /dev/console or any other tty-like device to the guest, then i won't care what it looks like on the host. however, you said it could carry resize events, which leads me to believe that the name (vertio-console) is not wrong, and it is a tty to the guest, and in my view that means it should be a tty to the host. please explain how your proposed addition to bhyve handles resize events but is not actually related to tty use by either the guest or host. > If we were to use virtio-console as a system console, then using a > pseudo tty and forwarding pty resize notifications as resize control > events to the guest is totally fine and desired (at least as one of > the options). However, as I said, unix domain socket is perfect fit > for using is at a regular bidirectional pipe. if that pipe has resize events encoded in it, as you said earlier, then it has to have a protocol, and it is not just a bidirectional pipe. please explain more about your use case. what will this device look like to the guest, and what application do you expect to have running on the host to talk to this unix domain socket? -- P Vixie
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57843C3D.80102>