From owner-freebsd-virtualization@freebsd.org Mon Jul 11 18:36:39 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 AA6BFB928CD for ; Mon, 11 Jul 2016 18:36:39 +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 6BEB71E87 for ; Mon, 11 Jul 2016 18:36:39 +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 <0OA5007HWYD14K20@mta.uoks.uj.edu.pl> for freebsd-virtualization@freebsd.org; Mon, 11 Jul 2016 20:36:38 +0200 (CEST) Subject: Re: [Differential] D7185: Add virtio-console support to bhyve From: Jakub Klama In-reply-to: <5783E64B.9010608@redbarn.org> Date: Mon, 11 Jul 2016 20:36:37 +0200 Cc: freebsd-virtualization@freebsd.org Content-transfer-encoding: quoted-printable Message-id: <6B5AEBF8-98B0-4031-A3E3-A1EBC8B4B763@uj.edu.pl> References: <5783D6FF.7010107@redbarn.org> <5783E2FE.1040309@redbarn.org> <5783E64B.9010608@redbarn.org> To: Paul Vixie 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 18:36:39 -0000 > Wiadomo=C5=9B=C4=87 napisana przez Paul Vixie w = dniu 11.07.2016, o godz. 20:32: >>> nmdm could theoretically (as pty and pts both do) support >>> TIOCGWINSZ and SIGWINCH, though? or perhaps bhyve's virtio_console >>> device could offer pts(4) support? >>=20 >> Yeah, virtio_console totally deserves support for binding virtual >> console to a pty/pts. >=20 > layering wise, adding TIOCGWINSZ and SIGWINCH support to nmdm makes = more sense than inventing another host-side protocol. as does adding = pts(4) support to the virtio_console driver. are those things hard? nmdm(4) emulates a serial port. how could one pass ioctls and signals = via serial port? >>> is the protocol spoken over the virtio_console socket documented >>> online? i'd like to add support to rtty. currently i've been >>> running the "resize" command at the guest shell, which feels very >>> primitive. >>=20 >> Right now the socket just speaks raw data. It would need some >> multiplexing or ideally an IPC mechanism to send the resize events. >=20 > yikes. so you've got to reinvent what TIOCPKT does, but differently? how could one pass ioctls via unix domain socket? Jakub=