]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bhyve: Support a _VARS.fd file for bootrom
authorRebecca Cran <bcran@FreeBSD.org>
Sun, 28 Nov 2021 16:34:33 +0000 (09:34 -0700)
committerRebecca Cran <bcran@FreeBSD.org>
Sun, 12 Dec 2021 15:07:27 +0000 (08:07 -0700)
commit866036f46c6e8884cc7a2aa029408366ede40a23
treee485f04a76d7072ff097865f754ec94a67b710ee
parentbf839416381cb9f63a8a82ea6e897a22830a8009
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
usr.sbin/bhyve/bhyve.8
usr.sbin/bhyve/bootrom.c