]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/XenPlatformLib: Cache result for XenDetected
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 13 Aug 2019 11:31:10 +0000 (12:31 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 21 Aug 2019 16:03:49 +0000 (18:03 +0200)
commit054c3fe9b5cd9bcd33ee8c7db992e13a36fa3191
tree3c2916d1fefebf2ef24dbcfb98a31f0010ca3d5e
parent198a8dc9cd6222e40a71ecadbb50ef8e34c276de
OvmfPkg/XenPlatformLib: Cache result for XenDetected

We are going to replace XenDetected() implementation in
PlatformBootManagerLib by the one in XenPlatformLib.
PlatformBootManagerLib's implementation does cache the result of
GetFirstGuidHob(), so we do something similar in XenPlatformLib.

Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=1689
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20190813113119.14804-27-anthony.perard@citrix.com>
OvmfPkg/Library/XenPlatformLib/XenPlatformLib.c