Re: [edk2-devel] [PATCH 4/4] OvmfPkg/VirtNorFlashDxe: ValidateFvHeader: unwritten state is EOL too

2024-01-12 Thread Gerd Hoffmann
On Fri, Jan 12, 2024 at 01:16:47PM +0100, Ard Biesheuvel wrote: > On Fri, 12 Jan 2024 at 12:38, Gerd Hoffmann wrote: > > > > It is possible to find variable entries with State being 0xff, > > i.e. not updated since flash block erase. This indicates the > > header write was not completed (and

Re: [edk2-devel] [PATCH 4/4] OvmfPkg/VirtNorFlashDxe: ValidateFvHeader: unwritten state is EOL too

2024-01-12 Thread Ard Biesheuvel
On Fri, 12 Jan 2024 at 12:38, Gerd Hoffmann wrote: > > It is possible to find variable entries with State being 0xff, > i.e. not updated since flash block erase. This indicates the > header write was not completed (and therefore State was not set > to VAR_HEADER_VALID_ONLY). Treat this as

[edk2-devel] [PATCH 4/4] OvmfPkg/VirtNorFlashDxe: ValidateFvHeader: unwritten state is EOL too

2024-01-12 Thread Gerd Hoffmann
It is possible to find variable entries with State being 0xff, i.e. not updated since flash block erase. This indicates the header write was not completed (and therefore State was not set to VAR_HEADER_VALID_ONLY). Treat this as additional "end of variable list" condition. Signed-off-by: Gerd