From owner-freebsd-virtualization@FreeBSD.ORG Wed Apr 9 17:27:09 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 24177984; Wed, 9 Apr 2014 17:27:09 +0000 (UTC) Received: from mail-lb0-x22c.google.com (mail-lb0-x22c.google.com [IPv6:2a00:1450:4010:c04::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6FABA15A4; Wed, 9 Apr 2014 17:27:08 +0000 (UTC) Received: by mail-lb0-f172.google.com with SMTP id c11so1412896lbj.31 for ; Wed, 09 Apr 2014 10:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=2/tioAsPxgwZjujwitsUQ0eMWpfzJbNv0hql95knwAk=; b=uLSK10xKtJXV77JtsZCx/9i5xKjMLCXf6BAapzTMyOjANpfsko7ngsQBxNUHYRzd5D ZBLwgDHGMrDnKN/fTeD1d4xAn00YiayoRxozv1C8Mb4iV2irIUBvhA1JAtNIcZKtbFb0 pMcng0yEm44PQUk7OCH0SRSVrgeD6DqE6906vBqnaIyn3IPiURw/LZhGlbHXarI4m58j EdXsGUMIc+0pkthyqUdjFlj7YmW99RZRxTOr9lMbZRK9B248Nrqb/nGUU7V43yH/PaF2 yzjsCiXDgFEfmmMvealFhQwoLeSdzxzLVRy6DBEYccbh62gy+zjlrXg9PqRykxfkCv+v sWhg== X-Received: by 10.112.163.69 with SMTP id yg5mr7862764lbb.14.1397064426323; Wed, 09 Apr 2014 10:27:06 -0700 (PDT) Received: from kloomba ([95.104.139.23]) by mx.google.com with ESMTPSA id d4sm1297444lbr.27.2014.04.09.10.27.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Apr 2014 10:27:05 -0700 (PDT) Sender: Roman Bogorodskiy Date: Wed, 9 Apr 2014 21:26:59 +0400 From: Roman Bogorodskiy To: Peter Grehan Subject: Re: bhyve: allow specifiying tty by fd Message-ID: <20140409172657.GB1313@kloomba> References: <20140305130030.GA40560@dev.san.ru> <5318BF7F.4060306@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f2QGlHpHGjS2mn6Y" Content-Disposition: inline In-Reply-To: <5318BF7F.4060306@freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-virtualization@freebsd.org 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: Wed, 09 Apr 2014 17:27:09 -0000 --f2QGlHpHGjS2mn6Y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Peter Grehan wrote: > 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=3D19 vm0 >=20 > Yes, useful idea, and will become more relevant in the capsicum world= =20 > of passing fd's to a sandboxed bhyve. >=20 > Thanks: I'll get this submitted. Hi Peter! Any news on that? Thanks, Roman Bogorodskiy --f2QGlHpHGjS2mn6Y Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (FreeBSD) iQEcBAEBAgAGBQJTRYLhAAoJEMltX/4IwiJq6AoIAK+OHJ8unohLc+5PW9fINKDK rfwMGYQnUR/fOTO68m05XGIIKkgap0EHvsNY0PS3DAtfi3646BTHC2vRV2LBX6Dx VOLZ4lZeubLcttzIZsZnXBDN8hPrNJAUY6kFPtAxKaDLCOetGplEVd3nM8CuTILj vPfnvlEW/5ULl+xnLCmGUMLco0qWepL8Vud2iskLEJ9vU8ZC7kUh3u8YgueNQDEC qZjUMW0sRdsibcjG/nwVyqzo+rIIwg+P+X0nWipryE4j3wxYaktWuJsyVUJJmQi9 9ZWznnCxhqELZ3GQN6ewkK4/mlgYIvbHdQQvT75q+ubC30WkMewzbkuKqyqeFtg= =kZIP -----END PGP SIGNATURE----- --f2QGlHpHGjS2mn6Y--