summaryrefslogtreecommitdiffstats
path: root/ArmVirtPkg/KvmtoolPlatformDxe/KvmtoolPlatformDxe.c
diff options
context:
space:
mode:
authorSami Mujawar <sami.mujawar@arm.com>2023-05-11 14:52:17 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2023-05-29 15:14:00 +0000
commit84d0b21d18db479236b6f8143eaa2e874e4efa99 (patch)
tree3c3484a210594ed8d4b6268c67663bdf635e0868 /ArmVirtPkg/KvmtoolPlatformDxe/KvmtoolPlatformDxe.c
parent0e5aecfed12da337c766a152a47c35ac1ec35818 (diff)
downloadedk2-84d0b21d18db479236b6f8143eaa2e874e4efa99.tar.gz
edk2-84d0b21d18db479236b6f8143eaa2e874e4efa99.tar.bz2
edk2-84d0b21d18db479236b6f8143eaa2e874e4efa99.zip
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 'ArmVirtPkg/KvmtoolPlatformDxe/KvmtoolPlatformDxe.c')
0 files changed, 0 insertions, 0 deletions