History log of /freebsd-current/usr.sbin/bhyve/uart_pl011.c
Revision Date Author Comments
# e10b9d66 01-May-2024 SHENG-YI HONG <aokblast@FreeBSD.org>

bhyve: Move lock of uart frontend to uart backend

Currently, lock of uart in bhyve is placed in frontend. There are some
problems about it:

1. If every frontend should has a lock, why not move it inside backend
as they all have same uart_softc.
2. If backend needs to modify the information of uart after initialize,
it will be impossible as backend cannot use lock. For example, if we
want implement a telnet support for uart in backend, It should wait
for connection when initialize. After some remote process connect it,
it needs to modify rfd and wfd in backend.

So I decide to move it to backend.

Reviewed by: corvink, jhb, markj
Differential Revision: https://reviews.freebsd.org/D44947


# f3003a0d 02-Apr-2024 Andrew Turner <andrew@freebsd.org>

bhyve: Add PL011 UART emulation

This will be use for arm64 guests, instead of the existing ns16550 UART
model.

Reviewed by: corvink, jhb
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D40997