HomeFreeBSD

bhyve: Support a _VARS.fd file for bootrom

Description

bhyve: Support a _VARS.fd file for bootrom

OVMF creates two separate .fd files, a _CODE.fd file containing
the UEFI code, and a _VARS.fd file containing a template of an
empty UEFI variable store.

OVMF decides to write variables to the memory range just below the
boot rom code if it detects a CFI flash device. So here we add
just the barest facsimile of CFI command handling to bootrom.c
that is needed to placate OVMF.

Submitted by: D Scott Phillips <d.scott.phillips@intel.com>
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D19976
MFC After: 1 week

(cherry picked from commit 866036f46c6e8884cc7a2aa029408366ede40a23)

Details

Provenance
bcranAuthored on Nov 28 2021, 4:34 PM
corvinkCommitted on Dec 8 2022, 1:53 PM
Differential Revision
D19976: bhyve: Support a _VARS.fd file for bootrom
Parents
rG6820a0512fa6: linuxkpi/dmi: don't match exactly on DMI_MATCH
Branches
Unknown
Tags
Unknown