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)
Wed, Nov 5, 3:11 AM
Unknown Object (File)
Tue, Nov 4, 7:10 PM
Unknown Object (File)
Fri, Oct 31, 3:22 AM
Unknown Object (File)
Tue, Oct 28, 10:58 PM
Unknown Object (File)
Tue, Oct 28, 6:23 PM
Unknown Object (File)
Sat, Oct 25, 11:57 PM
Unknown Object (File)
Fri, Oct 24, 7:06 PM
Unknown Object (File)
Oct 15 2025, 3:57 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

usr.sbin/bhyve/acpi_device.c
144
160

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
160

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
154

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.