From owner-freebsd-virtualization@FreeBSD.ORG Sun Apr 28 21:35:20 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F325E765 for ; Sun, 28 Apr 2013 21:35:19 +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 B091015E2 for ; Sun, 28 Apr 2013 21:35:19 +0000 (UTC) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTPS id 7FCC312252; Mon, 29 Apr 2013 07:35:17 +1000 (EST) Received: from Peter-Grehans-MacBook-Pro.local (c-71-196-188-222.hsd1.co.comcast.net [71.196.188.222]) by dommail.onthenet.com.au (MOS 4.2.4-GA) with ESMTP id BLS70821 (AUTH peterg@ptree32.com.au); Mon, 29 Apr 2013 07:35:14 +1000 Message-ID: <517D960E.10201@freebsd.org> Date: Sun, 28 Apr 2013 15:35:10 -0600 From: Peter Grehan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: Dan Mack Subject: Re: bhyve console question References: <20130427154625.X29498@coco.macktronics.com> <517C4F9C.9020200@freebsd.org> <20130428083458.S95875@coco.macktronics.com> <517D5F9F.6030809@freebsd.org> <20130428124802.K97174@coco.macktronics.com> In-Reply-To: <20130428124802.K97174@coco.macktronics.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Junkmail-Info: RCVD_IN_SORBS_DUL,RDNS_DYNAMIC,SPF_SOFTFAIL X-Junkmail-Status: score=24/51, host=dommail.onthenet.com.au Cc: freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.14 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: Sun, 28 Apr 2013 21:35:20 -0000 Hi Dan, > uart2: <16550 or compatible> port 0x3f8-0x3ff irq 4 at device 31.0 on pci0 > uart2: console (9600,n,8,1) > > which maps to the bhyve argument given: '-S 31,uart,stdio' Yes - the '-S' parameter instructs the PCI device to use a compatibility address so the console code can still access it. You could use any slot number that doesn't conflict (e.g. -S 11,...) FreeBSD reserves unit number 0 and 1 for ISA ports. When we have the PCI-ISA bridge code in place, it will show up as uart0, requiring ttyu0 to be edited in /etc/ttys. > It would be kind of cool to bind a guest's serial port to a named pipe > on the host system You bet. The intent was always to allow different back ends. The third parameter is to describe this e.g. in the future, there could be -s 10,uart,telnetd:4239 // telnet server on a given port -s 12,uart,pty05 // pseudo terminal -s 14,uart,exec:"socat UNIX-LISTEN:/tmp/.bhye" // exec an arbitrary program and use it's stdin/stdout On the TODO list :) later, Peter.