]> git.proxmox.com Git - mirror_edk2.git/commit
OvmfPkg/XenHypercallLib: Enable it in PEIM
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 13 Aug 2019 11:31:00 +0000 (12:31 +0100)
committerLaszlo Ersek <lersek@redhat.com>
Wed, 21 Aug 2019 16:03:49 +0000 (18:03 +0200)
commit68f4599dfc6ae841308e3fbce9121cbd311994f3
tree2ee07f83adc2b222d40476193b9620057e90c13a
parent2a4a6242b71721024971df56d4f28e0aa63dd4d8
OvmfPkg/XenHypercallLib: Enable it in PEIM

Allow to use Xen hypercalls earlier, during the PEIM stage, but
XenHypercallLibInit() must be called once the XenInfo HOB is created
with the HyperPage setup.

Change the return value of XenHypercallLibInit so failure can be
detected when the call shouldn't fail, but still have the constructor
always succeed.

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-17-anthony.perard@citrix.com>
OvmfPkg/Include/Library/XenHypercallLib.h
OvmfPkg/Library/XenHypercallLib/X86XenHypercall.c
OvmfPkg/Library/XenHypercallLib/XenHypercall.c
OvmfPkg/Library/XenHypercallLib/XenHypercallLib.inf