HomeFreeBSD

bhyve: add helper for adding fwcfg files

Description

bhyve: add helper for adding fwcfg files

Fwcfg items without a fixed index are reported by the file_dir. They
have an index of 0x20 and above. This helper simplifies the addition of
such fwcfg items. It selects a new free index, assigns it to the fwcfg
items and creates an proper entry in the file_dir.

Reviewed by: markj
MFC after: 1 week
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D38336

Details

Provenance
corvinkAuthored on Aug 11 2021, 8:04 AM
Reviewer
markj
Differential Revision
D38336: bhyve: add helper for adding fwcfg files
Parents
rGf7a884cb017f: x86: gate smbios hypervisor identification behind vm_guest
Branches
Unknown
Tags
Unknown