]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: add basl support for pointers
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:11 +0000 (08:27 +0100)
commit49b947c01db3efd7587b17d4d7f47675e91dc2ad
tree4f96cf0cfa9a7e592923dc089e6e2363c6a4a11b
parent29578470314c09d4ae3163f151da7d4684fb1428
bhyve: add basl support for pointers

Some ACPI tables like XSDT contain pointers to other ACPI tables. When
an ACPI table is loaded by qemu's loader, the address in the guest
memory is unknown. For that reason, the qemu loader supports patching
those pointers. Basl keeps track of all pointers and causes the qemu
loader to patch all pointers.

The qemu ACPI table loader is unsupport yet. However, in a future commit
bhyve will use dynamic ACPI table offsets based on the size and
alignment requirements of each ACPI table. Therefore, tracking ACPI
table pointer is required 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/D36991
usr.sbin/bhyve/basl.c
usr.sbin/bhyve/basl.h