From owner-freebsd-virtualization@FreeBSD.ORG Thu Mar 6 18:44:14 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 04D32DB0 for ; Thu, 6 Mar 2014 18:44:14 +0000 (UTC) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CC7A0B23 for ; Thu, 6 Mar 2014 18:44:13 +0000 (UTC) Received: from julian-mbp3.pixel8networks.com (50-196-156-133-static.hfc.comcastbusiness.net [50.196.156.133]) (authenticated bits=0) by vps1.elischer.org (8.14.7/8.14.7) with ESMTP id s26Ii6WA085743 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 6 Mar 2014 10:44:07 -0800 (PST) (envelope-from julian@freebsd.org) Message-ID: <5318C1F3.4020808@freebsd.org> Date: Thu, 06 Mar 2014 10:44:03 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: Re: bhyve: allow specifiying tty by fd References: <20140305130030.GA40560@dev.san.ru> <5318BF7F.4060306@freebsd.org> In-Reply-To: <5318BF7F.4060306@freebsd.org> 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.17 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: Thu, 06 Mar 2014 18:44:14 -0000 On 3/6/14, 10:33 AM, Peter Grehan wrote: and allows fd to be a socket! :-) > Hi Roman, >> Currently bhyve(8) allows to specify either stdio or device path as a >> TTY device. However, it could be useful to specify a TTY device by >> file >> descriptor, e.g. when bhyve is being executed in an automated way by >> other application, so a result of openpty(3) could be passed to it. >> >> Attached a poc patch for that. It allows to specify fd this way: >> >> bhyve -s 31,lpc -l com1,fd=19 vm0 > > Yes, useful idea, and will become more relevant in the capsicum > world of passing fd's to a sandboxed bhyve. > > Thanks: I'll get this submitted. > > later, > > Peter. > > _______________________________________________ > freebsd-virtualization@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization > To unsubscribe, send any mail to > "freebsd-virtualization-unsubscribe@freebsd.org" >