Page MenuHomeFreeBSD

bhyve: add helper func to write a dsdt entry
ClosedPublic

Authored by corvink on Feb 1 2023, 11:09 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 1:56 AM
Unknown Object (File)
Sun, Nov 24, 9:22 AM
Unknown Object (File)
Sat, Nov 23, 2:22 AM
Unknown Object (File)
Thu, Nov 21, 4:58 PM
Unknown Object (File)
Nov 21 2024, 8:25 AM
Unknown Object (File)
Nov 7 2024, 4:25 AM
Unknown Object (File)
Oct 30 2024, 3:32 PM
Unknown Object (File)
Oct 14 2024, 5:22 AM
Subscribers

Details

Summary

The guest will check the dsdt to detect acpi devices. Therefore, add a
helper function to create such a dsdt entry for an acpi device.

Diff Detail

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

Event Timeline

usr.sbin/bhyve/acpi_device.c
149
165

Can this only happen due to a programming error? Should this then be a fatal error?

  • fix style
  • assert on unknown resource type
corvink added inline comments.
usr.sbin/bhyve/acpi_device.c
165

Should only happen due to a programming error. I'm not sure about the prefered style. I'm using assert(0) like some other part of bhyve.

markj added inline comments.
usr.sbin/bhyve/acpi_device.c
159

No need for braces here. Or maybe you add some local var in a later patch.

This revision is now accepted and ready to land.Feb 10 2023, 4:37 PM
This revision was automatically updated to reflect the committed changes.