]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: add basic basl implementation
authorCorvin Köhne <corvink@FreeBSD.org>
Fri, 4 Nov 2022 11:24:49 +0000 (12:24 +0100)
committerCorvin Köhne <corvink@FreeBSD.org>
Tue, 15 Nov 2022 07:27:01 +0000 (08:27 +0100)
commit21bbc28426d6b88adfdd8c66d0bc936652e0191d
treefccf2a43f7d38d5074e87cbbe8e6fe8c19f977cd
parenteff8d0347713c52bed70179610df1be7c8badbe6
bhyve: add basic basl implementation

Basl is the bhyve ASL compiler. At the moment, it's just a small wrapper
to call iasl, the Intel ASL compiler. As bhyve will gain support for
qemu's ACPI table loader in the future, it has to create ACPI tables on
it's own. Therefore, it makes sense to create a new file which keeps the
code for basl.

This first implementation of basl supports creating an ACPI table by
appending raw bytes to it. It's also capable of loading all tables into
guest memory.

Reviewed by: jhb, markj (older version)
Approved by: manu (mentor)
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36984
usr.sbin/bhyve/Makefile
usr.sbin/bhyve/acpi.c
usr.sbin/bhyve/basl.c [new file with mode: 0644]
usr.sbin/bhyve/basl.h [new file with mode: 0644]