From owner-freebsd-virtualization@freebsd.org Mon Jul 11 18:32:46 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 5FE4CB92820 for ; Mon, 11 Jul 2016 18:32:46 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from family.redbarn.org (family.redbarn.org [24.104.150.213]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FCEE1DED for ; Mon, 11 Jul 2016 18:32:45 +0000 (UTC) (envelope-from paul@redbarn.org) Received: from [24.104.150.22] (unknown [24.104.150.22]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by family.redbarn.org (Postfix) with ESMTPSA id 6D5403AF8E; Mon, 11 Jul 2016 18:32:45 +0000 (UTC) Message-ID: <5783E64B.9010608@redbarn.org> Date: Mon, 11 Jul 2016 11:32:43 -0700 From: Paul Vixie User-Agent: Postbox 4.0.8 (Windows/20151105) MIME-Version: 1.0 To: Jakub Klama CC: freebsd-virtualization@freebsd.org Subject: Re: [Differential] D7185: Add virtio-console support to bhyve References: <5783D6FF.7010107@redbarn.org> <5783E2FE.1040309@redbarn.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:32:46 -0000 Jakub Klama wrote: > ... What I meant is that virtio-console can be used as a > replacement for TCP/IP communication between host and guest (at least in > some applications). For example, it can be used by the "guest additions" > code to talk to the host. so, kermit? :-) >> 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? > > Yeah, virtio_console totally deserves support for binding virtual > console to a pty/pts. 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? >> 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. > > Right now the socket just speaks raw data. It would need some > multiplexing or ideally an IPC mechanism to send the resize events. yikes. so you've got to reinvent what TIOCPKT does, but differently? -- P Vixie