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
F102674426: D36985.diff
Fri, Nov 15, 4:58 PM
Unknown Object (File)
Wed, Nov 13, 7:52 PM
Unknown Object (File)
Fri, Nov 8, 6:17 AM
Unknown Object (File)
Thu, Nov 7, 11:06 AM
Unknown Object (File)
Thu, Nov 7, 3:27 AM
Unknown Object (File)
Sat, Oct 26, 8:05 PM
Unknown Object (File)
Oct 16 2024, 4:07 AM
Unknown Object (File)
Oct 15 2024, 4:52 PM
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.