Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 0a0919607cebbc7cd002ecb6a9f293b890caca9a
      
https://github.com/tianocore/edk2/commit/0a0919607cebbc7cd002ecb6a9f293b890caca9a
  Author: Gerd Hoffmann <[email protected]>
  Date:   2026-04-01 (Wed, 01 Apr 2026)

  Changed paths:
    M OvmfPkg/Library/PlatformInitLib/MemDetect.c

  Log Message:
  -----------
  OvmfPkg/PlatformInitLib: redefine low memory

Traditionally "low memory" is all memory below 4G.  The code logic dates
back to the days where OVMF has used the CMOS to figure how much memory
is installed instead of the e820 table provided by qemu.

That approach to memory detection implicitly assumes there is a single
block of memory below 4G.  Should that not be the case things fall
apart.  This happens in case OVMF runs under SVSM and SVSM caves out a
chunk of memory below 4G for itself, passing the remaining two blocks of
memory below 4G on to OVMF (via igvm memory map).

Fix that by redefining what OVMF considers "low memory".  It is the
first block of memory (with base address zero) now.  This fixes the SVSM
use case outlined above.  For other use cases nothing will change.

Signed-off-by: Gerd Hoffmann <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to