[edk2-devel] [PATCH v3 19/35] OvmfPkg/XenPlatformPei: Reserve hvmloader's memory only when it has run

Anthony PERARD posted 35 patches 5 years, 4 months ago
There is a newer version of this series
[edk2-devel] [PATCH v3 19/35] OvmfPkg/XenPlatformPei: Reserve hvmloader's memory only when it has run
Posted by Anthony PERARD 5 years, 4 months ago
Reserve hvmloader's memory only when it has run.

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1689
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Laszlo Ersek <lersek@redhat.com>
---

Notes:
    v3:
    - fix empty commit message body

 OvmfPkg/XenPlatformPei/Xen.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/OvmfPkg/XenPlatformPei/Xen.c b/OvmfPkg/XenPlatformPei/Xen.c
index a90be7bbeb..37e9cff4b4 100644
--- a/OvmfPkg/XenPlatformPei/Xen.c
+++ b/OvmfPkg/XenPlatformPei/Xen.c
@@ -272,7 +272,9 @@ InitializeXen (
   // Reserve away HVMLOADER reserved memory [0xFC000000,0xFD000000).

   // This needs to match HVMLOADER RESERVED_MEMBASE/RESERVED_MEMSIZE.

   //

-  AddReservedMemoryBaseSizeHob (0xFC000000, 0x1000000, FALSE);

+  if (XenHvmloaderDetected ()) {

+    AddReservedMemoryBaseSizeHob (0xFC000000, 0x1000000, FALSE);

+  }

 

   PcdStatus = PcdSetBoolS (PcdPciDisableBusEnumeration, TRUE);

   ASSERT_RETURN_ERROR (PcdStatus);

-- 
Anthony PERARD


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#43306): https://edk2.groups.io/g/devel/message/43306
Mute This Topic: https://groups.io/mt/32308730/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-