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)
Thu, Jul 4, 10:51 PM
Unknown Object (File)
Thu, Jul 4, 10:41 PM
Unknown Object (File)
Thu, Jul 4, 3:11 PM
Unknown Object (File)
Sun, Jun 30, 2:35 AM
Unknown Object (File)
Jun 25 2024, 3:50 AM
Unknown Object (File)
Jun 24 2024, 3:23 AM
Unknown Object (File)
Jun 21 2024, 7:53 AM
Unknown Object (File)
Jun 8 2024, 10:08 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.