OvmfPkg/XenPlatformPei: Introduce XenPvhDetected

XenPvhDetected() can be used to figure out if OVMF has started via the
Xen PVH entry point.

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-21-anthony.perard@citrix.com>
This commit is contained in:
Anthony PERARD 2019-08-13 12:31:04 +01:00 committed by Laszlo Ersek
parent 12998837d5
commit 64eac29576
2 changed files with 18 additions and 0 deletions

View File

@ -99,6 +99,11 @@ XenHvmloaderDetected (
VOID
);
BOOLEAN
XenPvhDetected (
VOID
);
VOID
AmdSevInitialize (
VOID

View File

@ -214,6 +214,19 @@ XenHvmloaderDetected (
return (mXenHvmloaderInfo != NULL);
}
BOOLEAN
XenPvhDetected (
VOID
)
{
//
// This function should only be used after XenConnect
//
ASSERT (mXenInfo.HyperPages != NULL);
return mXenHvmloaderInfo == NULL;
}
VOID
XenPublishRamRegions (
VOID