OvmfPkg/XenPlatformPei: Introduce XenHvmloaderDetected

This new XenHvmloaderDetected() return true if the hvmloader firmware
has runned before OVMF.

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-19-anthony.perard@citrix.com>
This commit is contained in:
Anthony PERARD 2019-08-13 12:31:02 +01:00 committed by Laszlo Ersek
parent 80b619d5c4
commit 4022f7fa91
2 changed files with 12 additions and 0 deletions

View File

@ -89,6 +89,11 @@ XenDetect (
VOID
);
BOOLEAN
XenHvmloaderDetected (
VOID
);
VOID
AmdSevInitialize (
VOID

View File

@ -199,6 +199,13 @@ XenDetect (
return FALSE;
}
BOOLEAN
XenHvmloaderDetected (
VOID
)
{
return (mXenHvmloaderInfo != NULL);
}
VOID
XenPublishRamRegions (