diff options
author | Anthony PERARD <anthony.perard@citrix.com> | 2019-08-13 12:31:02 +0100 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2019-08-21 18:03:49 +0200 |
commit | 4022f7fa91669e66479483086dc361d8dd17acfe (patch) | |
tree | c85f0b1a11ac0f8be59e997af84f12a9c62c3941 /OvmfPkg/XenPlatformPei | |
parent | 80b619d5c456c286e58b122690ff254aeca7f12c (diff) | |
download | edk2-4022f7fa91669e66479483086dc361d8dd17acfe.tar.gz edk2-4022f7fa91669e66479483086dc361d8dd17acfe.tar.bz2 edk2-4022f7fa91669e66479483086dc361d8dd17acfe.zip |
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>
Diffstat (limited to 'OvmfPkg/XenPlatformPei')
-rw-r--r-- | OvmfPkg/XenPlatformPei/Platform.h | 5 | ||||
-rw-r--r-- | OvmfPkg/XenPlatformPei/Xen.c | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/OvmfPkg/XenPlatformPei/Platform.h b/OvmfPkg/XenPlatformPei/Platform.h index 77427496c0..925df31f88 100644 --- a/OvmfPkg/XenPlatformPei/Platform.h +++ b/OvmfPkg/XenPlatformPei/Platform.h @@ -89,6 +89,11 @@ XenDetect ( VOID
);
+BOOLEAN
+XenHvmloaderDetected (
+ VOID
+ );
+
VOID
AmdSevInitialize (
VOID
diff --git a/OvmfPkg/XenPlatformPei/Xen.c b/OvmfPkg/XenPlatformPei/Xen.c index c67f4c9697..2105304c41 100644 --- a/OvmfPkg/XenPlatformPei/Xen.c +++ b/OvmfPkg/XenPlatformPei/Xen.c @@ -199,6 +199,13 @@ XenDetect ( return FALSE;
}
+BOOLEAN
+XenHvmloaderDetected (
+ VOID
+ )
+{
+ return (mXenHvmloaderInfo != NULL);
+}
VOID
XenPublishRamRegions (
|