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 Implement the century byte in the RTC. Some guests require this field to be 2015-04-28 23:44:47 +00:00
acpi.h Implement a PCI interrupt router to route PCI legacy INTx interrupts to 2014-05-15 14:16:55 +00:00
ahci.h Polish AHCI disk identify data and fix speed negotiation. 2015-03-13 20:14:35 +00:00
atkbdc.c Simplify the meaning of return values from the inout handlers. After this 2014-07-25 20:18:35 +00:00
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 Simplify instruction restart logic in bhyve. 2015-01-18 03:08:30 +00:00
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 Handle single-byte reads from the bvmcons port (0x220) by returning 2014-04-08 21:02:03 +00:00
dbgport.c add SO_REUSEADDR when starting debug port, lets you still bind when 2015-06-20 07:49:08 +00:00
dbgport.h Change the behavior of bhyve such that the gdb listening port is opt-in 2013-10-08 16:36:17 +00:00
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 Simplify the meaning of return values from the inout handlers. After this 2014-07-25 20:18:35 +00:00
ioapic.c Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
ioapic.h Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
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 Support PCI extended config space in bhyve. 2014-08-08 03:49:01 +00:00
mem.h Support PCI extended config space in bhyve. 2014-08-08 03:49:01 +00:00
mevent_test.c Add simplistic periodic timer support to mevent using kqueue's 2013-09-19 04:48:26 +00:00
mevent.c Re-adding an event to a kqueue modifies the parameters of the original event. 2014-05-05 16:30:03 +00:00
mevent.h Extend the ACPI power management support to wire a virtual power button up 2013-12-28 04:01:05 +00:00
mptbl.c Implement a PCI interrupt router to route PCI legacy INTx interrupts to 2014-05-15 14:16:55 +00:00
mptbl.h Make the virtual ioapic available unconditionally in a bhyve virtual machine. 2013-10-31 05:44:45 +00:00
pci_ahci.c Allow byte reads of AHCI registers. 2015-05-07 18:35:15 +00:00
pci_emul.c Advertise an additional memory BAR in the "dummy" device emulation. 2015-05-02 03:25:24 +00:00
pci_emul.h Support PCI extended config space in bhyve. 2014-08-08 03:49:01 +00:00
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 Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
pci_irq.h Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
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 Enhance the support for PCI legacy INTx interrupts and enable them in 2014-01-29 14:56:48 +00:00
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 Reassign copyright statements on several files from Advanced 2015-04-23 14:22:20 +00:00
post.c Rework the DSDT generation code a bit to generate more accurate info about 2014-01-02 21:26:59 +00:00
rtc.c Add "-u" option to bhyve(8) to indicate that the RTC should maintain UTC time. 2015-02-24 02:04:16 +00:00
rtc.h Add "-u" option to bhyve(8) to indicate that the RTC should maintain UTC time. 2015-02-24 02:04:16 +00:00
smbiostbl.c Correct display of bhyve SMBIOS UUIDs with dmidecode by bumping the version. 2014-09-23 01:17:22 +00:00
smbiostbl.h Add SMBIOS support. 2014-03-04 17:12:06 +00:00
spinup_ap.c Use 'cpuset_t' to represent the vcpus active in a virtual machine. 2014-03-20 18:15:37 +00:00
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 Add support for PCI-to-ISA LPC bridge emulation. If the LPC bus is attached 2013-10-29 00:18:11 +00:00
virtio.c Handling indirect descriptors is a capability of the host and 2015-05-11 21:24:10 +00:00
virtio.h Fix networking problem after r280026. 2015-03-15 16:09:39 +00:00
xmsr.c Emulate MSR 0xC0011024 when running on AMD processors. 2015-02-24 05:15:40 +00:00
xmsr.h Restructure the MSR handling so it is entirely handled by processor-specific 2014-09-20 02:35:21 +00:00