]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: add basl support for checksums
authorCorvin Köhne <corvink@FreeBSD.org>
Wed, 6 Apr 2022 09:10:39 +0000 (11:10 +0200)
committerCorvin Köhne <corvink@FreeBSD.org>
Tue, 15 Nov 2022 07:27:10 +0000 (08:27 +0100)
commit29578470314c09d4ae3163f151da7d4684fb1428
tree4a1b9f36655a96160efd56a970ca93c1b1de3575
parent3a766cd0f1fed90df8f3fd010357e36e050bceb2
bhyve: add basl support for checksums

The qemu ACPI table loader patches the ACPI tables. After patching them,
checksums aren't correct any more. It has to calculate a new checksum
for the ACPI table. For that reason, basl has to keep track of checksums
and has to cause the qemu loader to create new checksums for the tables.

The qemu ACPI table loader isn't supported yet. However, the address of
all tables is unknown as long as bhyve hasn't finished ACPI table
creation. So, the checksum of tables which include pointer to other
tables are unknown too. This requires tracking of checksums too.

Reviewed by: jhb
Approved by: manu (mentor)
MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D36990
usr.sbin/bhyve/basl.c
usr.sbin/bhyve/basl.h