]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Disable the 'uart_drain()' callback when the emulated receive FIFO is full.
authorneel <neel@FreeBSD.org>
Mon, 5 May 2014 23:54:13 +0000 (23:54 +0000)
committerneel <neel@FreeBSD.org>
Mon, 5 May 2014 23:54:13 +0000 (23:54 +0000)
commitaa70881c34edaff767bc4cad64b636161cb4dc0b
tree606030b1fd045a4842effdfeeff753dc0f614b22
parent915372aa18469a8626ff24ac7b55d07871412381
Disable the 'uart_drain()' callback when the emulated receive FIFO is full.

Failing to do this will cause the kevent(2) notification to trigger
continuously and the bhyve(8) mevent thread will hog the cpu until the
characters on the backend tty device are drained.

Also, make the uart backend file descriptor non-blocking to avoid a
select(2) before every byte read from that backend.

Reviewed by: grehan
usr.sbin/bhyve/uart_emul.c