]> 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, 29 Nov 2022 13:53:52 +0000 (14:53 +0100)
commit30ab6a9ee05d1c3a06df3c2449fe5c320e8dcdbd
treee74d542d76e9261959306ce2196f785456618766
parent032165475f5d7357fd68a7db5efb5e0eb103ad4e
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

(cherry picked from commit 29578470314c09d4ae3163f151da7d4684fb1428)
usr.sbin/bhyve/basl.c
usr.sbin/bhyve/basl.h