Page MenuHomeFreeBSD

bhyve: add E820 dump function
ClosedPublic

Authored by corvink on Apr 13 2023, 7:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 15, 5:40 PM
Unknown Object (File)
Sun, Oct 20, 5:56 PM
Unknown Object (File)
Sep 19 2024, 3:30 PM
Unknown Object (File)
Sep 16 2024, 10:37 PM
Unknown Object (File)
Sep 16 2024, 4:10 PM
Unknown Object (File)
Sep 6 2024, 4:07 PM
Unknown Object (File)
Sep 6 2024, 12:45 AM
Unknown Object (File)
Sep 3 2024, 7:09 AM
Subscribers

Details

Summary

For debugging purposes it is helpful to dump the E820 table.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 50959
Build 47850: arc lint + arc unit

Event Timeline

usr.sbin/bhyve/e820.c
71

The returned strings are padded specifically to suit e820_dump_table(). Better would be to either inline this code in e820_dump_table(), or handling formatting in e820_dump_table() with "%10s" or so.

79

There's no need for carriage returns I think?

83
corvink added inline comments.
usr.sbin/bhyve/e820.c
71

Looking at the printf it makes no sense to add padding at all.

This revision is now accepted and ready to land.Apr 24 2023, 3:27 PM
This revision was automatically updated to reflect the committed changes.
corvink marked an inline comment as done.