audk/OvmfPkg/QemuFlashFvbServicesRuntimeDxe
Gerd Hoffmann 578a715cfc OvmfPkg/QemuFlashFvbServicesRuntimeDxe: refine flash detection
Flash can be write-protected in qemu (which is usually the case for
code).  In case the variable store flash block is configured read-only
ovmf wouldn't be able to store EFI variables there, so not setting up
fvb in that case (and fallhack to emulation) is the better option.
It'll avoid problems later due to flash writes failing.

The patch tries to write back the original value read earlier, so flash
content doesn't change in case the write succeeds.  But the status we
read back after the attempt to write will tell us whenever flash is
writable or not.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2023-06-01 09:00:00 +00:00
..
FvbInfo.c
FvbServicesRuntimeDxe.inf
FvbServicesSmm.inf
FwBlockService.c
FwBlockService.h
FwBlockServiceDxe.c
FwBlockServiceSmm.c
QemuFlash.c OvmfPkg/QemuFlashFvbServicesRuntimeDxe: refine flash detection 2023-06-01 09:00:00 +00:00
QemuFlash.h
QemuFlashDxe.c OvmfPkg/UefiCpuPkg: Add CcExit prefix to the APIs of CcExitLib 2022-11-14 04:55:34 +00:00
QemuFlashSmm.c