This area is overwritten after resume / reboot. Make sure the OS steers
clear of it so that we don't destroy OS data after resume.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <[email protected]>
---
 OvmfPkg/PlatformPei/Fv.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/OvmfPkg/PlatformPei/Fv.c b/OvmfPkg/PlatformPei/Fv.c
index 66343b3..ba44014 100644
--- a/OvmfPkg/PlatformPei/Fv.c
+++ b/OvmfPkg/PlatformPei/Fv.c
@@ -46,12 +46,13 @@ PeiFvInitialization (
   BuildFvHob (PcdGet32 (PcdOvmfMemFvBase), PcdGet32 (PcdOvmfMemFvSize));
 
   //
-  // Create a memory allocation HOB.
+  // Cover the decompressed main firmware with a memory allocation that
+  // prevents the OS from using it. At S3 resume we overwrite this area.
   //
   BuildMemoryAllocationHob (
     PcdGet32 (PcdOvmfMemFvBase),
     PcdGet32 (PcdOvmfMemFvSize),
-    EfiBootServicesData
+    EfiACPIMemoryNVS
     );
 
   //
-- 
1.8.3.1



------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to