OvmfPkg/XenPlatformPei: Setup HyperPages earlier

We are going to need to make an hypercall in order to retreive the E820
table from the hypervisor before been able to setup the memory.

Calling XenConnect earlier will allow to setup the XenHypercallLib
earlier to allow to make hypercalls.

While here, add some comments in XenConnect().

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>
Message-Id: <20190813113119.14804-20-anthony.perard@citrix.com>
This commit is contained in:
Anthony PERARD
2019-08-13 12:31:03 +01:00
committed by Laszlo Ersek
parent 4022f7fa91
commit 12998837d5
3 changed files with 19 additions and 11 deletions

View File

@@ -416,6 +416,8 @@ InitializeXenPlatform (
CpuDeadLoop ();
}
XenConnect ();
BootModeInitialization ();
AddressWidthInitialization ();