Page MenuHomeFreeBSD

[PATCH 2/19] bhyve: add table dump functions for basl
ClosedPublic

Authored by corvink on Oct 14 2022, 8:58 AM.
Tags
Referenced Files
Unknown Object (File)
Mar 19 2024, 11:55 AM
Unknown Object (File)
Mar 19 2024, 11:55 AM
Unknown Object (File)
Mar 19 2024, 11:55 AM
Unknown Object (File)
Mar 19 2024, 11:55 AM
Unknown Object (File)
Mar 19 2024, 11:55 AM
Unknown Object (File)
Mar 19 2024, 11:55 AM
Unknown Object (File)
Mar 17 2024, 8:17 PM
Unknown Object (File)
Jan 1 2024, 7:55 AM
Subscribers

Details

Summary

Developing an ACPI table compiler isn't quite easy. It's helpful if you
can take a look at the ACPI tables created by the compiler.

The dump functions can either dump a ACPI table which was copied into
guest memory or a ACPI table provided for qemu's ACPI table loader.

This is the second patch required to merge D36983

Diff Detail

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

Event Timeline

corvink retitled this revision from [acpi-tables part 2] bhyve: add table dump functions for basl to [PATCH 2/19] bhyve: add table dump functions for basl.Oct 14 2022, 9:43 AM
usr.sbin/bhyve/basl.c
37

Looks like mem can be bool.

45

No need for a cast here.

52

Why is \r needed? Ditto below.

71
86

Let's be consistent and include an extra newline between variable declarations and the rest of the function body, like basl_dump_table() does. This is required by style(9) too.

87
  • address feedback of markj
markj added inline comments.
usr.sbin/bhyve/basl.c
84

This one should also be bool.

This revision is now accepted and ready to land.Oct 26 2022, 1:55 PM
  • correct usage of isprint
This revision now requires review to proceed.Nov 8 2022, 8:11 AM
usr.sbin/bhyve/basl.c
55

You might be able to replace this loop with a call to hexdump(3) from libutil.

  • use hexdump for dumping ACPI tables
corvink added inline comments.
usr.sbin/bhyve/basl.c
55

Good idea. Thanks.

This revision is now accepted and ready to land.Nov 11 2022, 2:16 PM
This revision was automatically updated to reflect the committed changes.
corvink marked an inline comment as done.