Page MenuHomeFreeBSD

bhyve: allow building device specific ACPI tables
ClosedPublic

Authored by corvink on Mar 29 2023, 1:24 PM.
Tags
None
Referenced Files
F102032788: D39320.diff
Wed, Nov 6, 6:30 PM
Unknown Object (File)
Sat, Oct 26, 12:41 PM
Unknown Object (File)
Mon, Oct 21, 1:27 PM
Unknown Object (File)
Wed, Oct 9, 1:47 AM
Unknown Object (File)
Wed, Oct 9, 1:47 AM
Unknown Object (File)
Wed, Oct 9, 1:46 AM
Unknown Object (File)
Wed, Oct 9, 1:45 AM
Unknown Object (File)
Wed, Oct 9, 1:20 AM
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 50650
Build 47541: arc lint + arc unit

Event Timeline

usr.sbin/bhyve/acpi_device.c
149

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
149

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.