Page MenuHomeFreeBSD

bhyve: allow building device specific ACPI tables
ClosedPublic

Authored by corvink on Mar 29 2023, 1:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 9:34 PM
Unknown Object (File)
Wed, Nov 20, 6:58 PM
Unknown Object (File)
Fri, Nov 8, 6:52 AM
Unknown Object (File)
Wed, Nov 6, 8:44 PM
Unknown Object (File)
Wed, Nov 6, 8:35 PM
Unknown Object (File)
Wed, Nov 6, 6:30 PM
Unknown Object (File)
Oct 26 2024, 12:41 PM
Unknown Object (File)
Oct 21 2024, 1:27 PM
Subscribers

Details

Summary

Some ACPI devices require a device specific acpi table. E.g. a TPM2
device requires a TPM2 table. Use the acpi_device_emul struct to define
such a device specific table.

Diff Detail

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

Event Timeline

usr.sbin/bhyve/acpi_device.c
143

This can be an assertion.

usr.sbin/bhyve/acpi_device.h
31

The name build_table is quite general, so some comment should explain what this callback is for.

  • add comment to explain the usage of acpi_device_emul.build_table
corvink added inline comments.
usr.sbin/bhyve/acpi_device.c
143

No, it can't. A build_table callback isn't used by all acpi_devices. F.e. qemu_fwcfg has no such callback.

markj added inline comments.
usr.sbin/bhyve/acpi.c
814
This revision is now accepted and ready to land.Apr 11 2023, 2:18 PM
This revision was automatically updated to reflect the committed changes.
corvink marked an inline comment as done.