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)
Mon, Nov 25, 9:02 PM
Unknown Object (File)
Mon, Nov 25, 6:18 PM
Unknown Object (File)
Nov 23 2024, 1:33 PM
Unknown Object (File)
Nov 19 2024, 7:56 AM
Unknown Object (File)
Nov 17 2024, 11:55 PM
Unknown Object (File)
Nov 15 2024, 7:49 PM
Unknown Object (File)
Nov 15 2024, 6:09 PM
Unknown Object (File)
Nov 15 2024, 6:07 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 Skipped
Unit
Tests Skipped

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
39

Looks like mem can be bool.

47

No need for a cast here.

54

Why is \r needed? Ditto below.

73
88

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.

89
  • address feedback of markj
markj added inline comments.
usr.sbin/bhyve/basl.c
86

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
57

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
57

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.