Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 06 Mar 2014 10:44:03 -0800
From:      Julian Elischer <julian@freebsd.org>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: bhyve: allow specifiying tty by fd
Message-ID:  <5318C1F3.4020808@freebsd.org>
In-Reply-To: <5318BF7F.4060306@freebsd.org>
References:  <20140305130030.GA40560@dev.san.ru> <5318BF7F.4060306@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <snip>  -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"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5318C1F3.4020808>