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 OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FvbServicesRuntimeDxe.inf OvmfPkg/UefiCpuPkg/UefiPayloadPkg: Rename VmgExitLib to CcExitLib 2022-11-14 04:55:34 +00:00
FvbServicesSmm.inf OvmfPkg: set fixed FlashNvStorage base addresses with -D SMM_REQUIRE 2020-03-12 21:14:46 +00:00
FwBlockService.c OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FwBlockService.h OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FwBlockServiceDxe.c OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
FwBlockServiceSmm.c OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
QemuFlash.c OvmfPkg/QemuFlashFvbServicesRuntimeDxe: refine flash detection 2023-06-01 09:00:00 +00:00
QemuFlash.h OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
QemuFlashDxe.c OvmfPkg/UefiCpuPkg: Add CcExit prefix to the APIs of CcExitLib 2022-11-14 04:55:34 +00:00
QemuFlashSmm.c OvmfPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00