On 2017-05-04 21:07:24, Laszlo Ersek wrote: > On 05/03/17 23:39, Laszlo Ersek wrote: > > - Raise VARS_LIVE_SIZE by 8KB to 256KB, VARS_SPARE_SIZE by 8KB to 264KB, > > Unfortunately, we have a terrible regression here. :( > > Adapting EmuVariableFvbRuntimeDxe to a non-power-of-two NV spare area > size is hopeless. (Definitely hopeless for the time frame & resources > I'm looking at.) > > Worse, even -pflash is broken in the 4MB build, actually. The > non-power-of-two NV spare area size, when used as Alignment for > AllocateAlignedRuntimePages() in ReserveEmuVariableNvStore(), triggers > an assertion. And this path is taken for the -pflash boot as well. For a short term fix, would something like this work? 1. Force emu fvb buffer alignment to next power-of-two Something like the attachment, but I'm guessing you already wrote something similar. 2. Revert 4MB by default patch This should allow you to start using the 4MB layout for your builds, and we can fix the non-flash path before re-enabling 4MB as the default. -Jordan