svn commit: r285217 - head/usr.sbin/bhyve

Ian Lepore ian at freebsd.org
Mon Jul 6 20:11:40 UTC 2015


On Mon, 2015-07-06 at 19:33 +0000, Neel Natu wrote:
> Author: neel
> Date: Mon Jul  6 19:33:29 2015
> New Revision: 285217
> URL: https://svnweb.freebsd.org/changeset/base/285217
> 
> Log:
>   Always assert DCD and DSR in bhyve's uart emulation.
>   
>   The /etc/ttys entry for a serial console in FreeBSD/x86 is as follows:
>   ttyu0   "/usr/libexec/getty 3wire"      vt100   onifconsole secure
>   
>   The initial terminal type passed to getty(8) is "3wire" which sets the
>   CLOCAL flag. However reset(1) clears this flag and any programs that try
>   to open the terminal will hang waiting for DCD to be asserted.
>   
>   Fix this by always asserting DCD and DSR in the emulated uart.
>   
>   The following discussion on virtualization@ has more details:
>   https://lists.freebsd.org/pipermail/freebsd-virtualization/2015-June/003666.html
>   
>   Reported by: jmg
>   Discussed with: grehan

This seems like a wrong fix.  A real 3-wire serial console doesn't have
DCD and DSR wired on.  Why isn't the right fix here having the user with
this problem to do "stty -f /dev/ttyu0.lock clocal", maybe in rc.local? 

Hmmm, or maybe it would be right for getty to do the equivelent when it
sees a 3wire type?

-- Ian




More information about the svn-src-head mailing list