MdeModulePkg/DxeCore: Filter out all paging capabilities
authorJian J Wang <>
Thu, 23 Nov 2017 01:48:33 +0000 (09:48 +0800)
committerStar Zeng <>
Fri, 24 Nov 2017 01:43:10 +0000 (09:43 +0800)
Some OSs will treat EFI_MEMORY_DESCRIPTOR.Attribute as really
set attributes and change memory paging attribute accordingly.
But current EFI_MEMORY_DESCRIPTOR.Attribute is assigned by
value from Capabilities in GCD memory map. This might cause
boot problems. Clearing all paging related capabilities can
workaround it. The code added in this patch is supposed to
be removed once the usage of EFI_MEMORY_DESCRIPTOR.Attribute
is clarified in UEFI spec and adopted by both EDK-II Core and
all supported OSs.

Laszlo did a thorough test on OVMF emulated platform. The details
can be found at

Cc: Jiewen Yao <>
Cc: Star Zeng <>
Cc: Laszlo Ersek <>
Cc: Ard Biesheuvel <>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <>
Tested-by: Laszlo Ersek <>
Reviewed-by: Star Zeng <>
Reviewed-by: Laszlo Ersek <>

No differences found