mirror of https://github.com/acidanthera/audk.git
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:
parent
12998837d5
commit
64eac29576
|
@ -99,6 +99,11 @@ XenHvmloaderDetected (
|
||||||
VOID
|
VOID
|
||||||
);
|
);
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
XenPvhDetected (
|
||||||
|
VOID
|
||||||
|
);
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
AmdSevInitialize (
|
AmdSevInitialize (
|
||||||
VOID
|
VOID
|
||||||
|
|
|
@ -214,6 +214,19 @@ XenHvmloaderDetected (
|
||||||
return (mXenHvmloaderInfo != NULL);
|
return (mXenHvmloaderInfo != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BOOLEAN
|
||||||
|
XenPvhDetected (
|
||||||
|
VOID
|
||||||
|
)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// This function should only be used after XenConnect
|
||||||
|
//
|
||||||
|
ASSERT (mXenInfo.HyperPages != NULL);
|
||||||
|
|
||||||
|
return mXenHvmloaderInfo == NULL;
|
||||||
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
XenPublishRamRegions (
|
XenPublishRamRegions (
|
||||||
VOID
|
VOID
|
||||||
|
|
Loading…
Reference in New Issue