To simplify the handling of different acpi devices like qemu fwcfg or a
tpm, add a helper struct. It will handle the reporting of acpi
resources.
Details
Details
- Reviewers
jhb markj - Group Reviewers
bhyve - Commits
- rGb5d47fa9a511: bhyve: add helper struct for acpi device handling
rG1231f047c3ed: bhyve: add helper struct for acpi device handling
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
- fix includes
- save copies of name and hid in acpi_device_create
- properly free an acpi_device on acpi_device_destroy
usr.sbin/bhyve/acpi_device.c | ||
---|---|---|
101 | Double free. |
usr.sbin/bhyve/acpi_device.c | ||
---|---|---|
101 | I'm guessing its a typo since dev->name is strdup()'ed further up. |
usr.sbin/bhyve/acpi_device.c | ||
---|---|---|
101 | Yes, it was a typo. |