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)
Wed, Dec 4, 6:37 PM
Unknown Object (File)
Nov 21 2024, 9:34 PM
Unknown Object (File)
Nov 20 2024, 6:58 PM
Unknown Object (File)
Nov 8 2024, 6:52 AM
Unknown Object (File)
Nov 6 2024, 8:44 PM
Unknown Object (File)
Nov 6 2024, 8:35 PM
Unknown Object (File)
Nov 6 2024, 6:30 PM
Unknown Object (File)
Oct 26 2024, 12:41 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 50765
Build 47656: arc lint + arc unit

Event Timeline

usr.sbin/bhyve/acpi_device.c
143

This can be an assertion.

usr.sbin/bhyve/acpi_device.h
23

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.