Ard,
When debugging a CentOS installation boot failure, I found that this commit
(MdeModulePkg: Notify BeforeExitBootServices in CoreExitBootServices ·
tianocore/edk2@0d1e729<https://github.com/tianocore/edk2/commit/0d1e7299ee770ff3e33df1e46ce8ed35ba5bba1a>)
introduced "BeforeExitBootService" event and signaled the event before
checking the memory MapKey. It's different from the existing style that
"ExitBootService" event is signaled after checking the MapKey.
Pseudo code is as follows:
SignalEvent (BeforeExitBootService);
IF InputMapKey != CurrentMapKey:
FAIL!
SignalEvent (ExitBootService);
SnpDxe driver has a callback on "BeforeExitBootService" event that does change
MapKey.
Then I found you added this commit in Linux kernel efi/libstub: Bump up
EFI_MMAP_NR_SLACK_SLOTS to 32 ·
torvalds/linux@ec46969<https://github.com/torvalds/linux/commit/ec4696925da6b9baec38345184403ce9e29a2e48>
to bump the extra memory-map entries number from 8 to 32.
Was there any discussion around this issue?
For example, did you also observe the inconsistency regarding when to check
MapKey? was there any proposal to move the MapKey checking before
"BeforeExitBootService" event signal?
Thanks,
Ray
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#122036): https://edk2.groups.io/g/devel/message/122036
Mute This Topic: https://groups.io/mt/120193106/21656
Group Owner: [email protected]
Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-