Page MenuHomeFreeBSD

bhyve: Add PL011 UART emulation
ClosedPublic

Authored by markj on Jul 12 2023, 1:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 11, 10:25 AM
Unknown Object (File)
Tue, May 7, 4:02 PM
Unknown Object (File)
Fri, May 3, 3:28 PM
Unknown Object (File)
Sat, Apr 27, 12:33 PM
Unknown Object (File)
Apr 10 2024, 7:16 PM
Unknown Object (File)
Apr 8 2024, 3:38 AM
Unknown Object (File)
Apr 3 2024, 2:18 AM
Unknown Object (File)
Mar 22 2024, 2:44 AM

Details

Summary

This is to be used instead of the existing ns16550 emulation, with which
it shares backend code from uart_backend.c.

Obtained from https://github.com/zxombie/freebsd/tree/bhyvearm64

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Jul 12 2023, 1:52 PM
jhb added inline comments.
usr.sbin/bhyve/uart_emul.h
37–38

Maybe fix this part in the original commit adding uart_backend.c?

This revision is now accepted and ready to land.Jul 12 2023, 6:50 PM
corvink added inline comments.
usr.sbin/bhyve/aarch64/uart_pl011.c
1 ↗(On Diff #124559)

Is the ns16550 and pl011 uart really MD? amd64 may make use of ns16550 while arm64 makes use of pl011 by default. However, if both emulations can be used on both architectures, we shouldn't move the code to amd64/ or aarch64/.

markj added inline comments.
usr.sbin/bhyve/aarch64/uart_pl011.c
1 ↗(On Diff #124559)

Yes, I probably should keep them in the base directory. Originally I added uart_pl011.c to aarch64 because it was somewhat coupled to the FDT builder.

This revision was automatically updated to reflect the committed changes.