freebsd-dev/usr.sbin/bhyve
Neel Natu ccfe4c3f74 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
2015-07-06 19:33:29 +00:00
..
acpi.c
acpi.h
ahci.h
atkbdc.c
bhyve.8 Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
bhyverun.c Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
bhyverun.h
block_if.c Allow configuration of the sector size advertised to the guest. 2015-05-12 00:30:39 +00:00
block_if.h Temporarily revert r282922 which bumped the max descriptors. 2015-05-21 04:19:22 +00:00
bootrom.c Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
bootrom.h Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
consport.c
dbgport.c add SO_REUSEADDR when starting debug port, lets you still bind when 2015-06-20 07:49:08 +00:00
dbgport.h
inout.c Deprecate the 3-way return values from vm_gla2gpa() and vm_copy_setup(). 2015-05-06 16:25:20 +00:00
inout.h
ioapic.c
ioapic.h
Makefile Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
Makefile.depend Updated depends 2015-07-03 06:11:54 +00:00
mem.c
mem.h
mevent_test.c
mevent.c
mevent.h
mptbl.c
mptbl.h
pci_ahci.c Allow byte reads of AHCI registers. 2015-05-07 18:35:15 +00:00
pci_emul.c
pci_emul.h
pci_hostbridge.c The 'hostbridge' device exists to allow guests to infer msi/msix 2015-05-21 20:11:52 +00:00
pci_irq.c
pci_irq.h
pci_lpc.c Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
pci_lpc.h Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
pci_passthru.c Restructure memory allocation in bhyve to support "devmem". 2015-06-18 06:00:17 +00:00
pci_uart.c
pci_virtio_block.c Set the subvendor field in config space to the vendor ID. 2015-05-13 17:38:07 +00:00
pci_virtio_net.c Set the subvendor field in config space to the vendor ID. 2015-05-13 17:38:07 +00:00
pci_virtio_rnd.c Set the subvendor field in config space to the vendor ID. 2015-05-13 17:38:07 +00:00
pm.c
post.c
rtc.c
rtc.h
smbiostbl.c
smbiostbl.h
spinup_ap.c
spinup_ap.h
task_switch.c Deprecate the 3-way return values from vm_gla2gpa() and vm_copy_setup(). 2015-05-06 16:25:20 +00:00
uart_emul.c Always assert DCD and DSR in bhyve's uart emulation. 2015-07-06 19:33:29 +00:00
uart_emul.h
virtio.c Handling indirect descriptors is a capability of the host and 2015-05-11 21:24:10 +00:00
virtio.h
xmsr.c
xmsr.h