diff options
author | Sami Mujawar <sami.mujawar@arm.com> | 2023-05-11 14:52:17 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2023-05-29 15:14:00 +0000 |
commit | 84d0b21d18db479236b6f8143eaa2e874e4efa99 (patch) | |
tree | 3c3484a210594ed8d4b6268c67663bdf635e0868 /UefiCpuPkg/MicrocodeMeasurementDxe | |
parent | 0e5aecfed12da337c766a152a47c35ac1ec35818 (diff) | |
download | edk2-84d0b21d18db479236b6f8143eaa2e874e4efa99.tar.gz |
ArmVirtPkg: Fallback to variable emulation if no CFI is found
The kvmtool option '--flash <flash filename>' is used to launch
a guests VM with a CFI flash device that maps the flash file
specified at the command line.
However, kvmtool allows guest VMs to be launched without a CFI
flash device. In such scenarios the firmware can utilize the
emulated variable storage for UEFI variables. To support this
the PCD gEfiMdeModulePkgTokenSpaceGuid.PcdEmuVariableNvModeEnable
must be set to TRUE.
Therefore, update the NorFlashKvmtoolLib to fallback to variable
emulation if a CFI device is not detected. Also improve the error
logging.
Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'UefiCpuPkg/MicrocodeMeasurementDxe')
0 files changed, 0 insertions, 0 deletions