[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RFC 04/18] OvmfPkg/XenbusDxe: Add support to make Xen Hypercalls.
> diff --git a/OvmfPkg/XenbusDxe/XenHypercall.c > b/OvmfPkg/XenbusDxe/XenHypercall.c > new file mode 100644 > index 0000000..5e98dd5 > --- /dev/null > +++ b/OvmfPkg/XenbusDxe/XenHypercall.c > @@ -0,0 +1,101 @@ > +#include <PiDxe.h> > +#include <Library/HobLib.h> > +#include <Guid/XenInfo.h> > + > +#include "XenbusDxe.h" > +#include "XenHypercall.h" > + > +#include <IndustryStandard/Xen/hvm/params.h> > +#include <IndustryStandard/Xen/memory.h> > + > +EFI_STATUS > +XenHyperpageInit ( > + XENBUS_DEVICE *Dev > + ) > +{ > + EFI_HOB_GUID_TYPE *GuidHob; > + EFI_XEN_INFO *XenInfo; > + > + GuidHob = GetFirstGuidHob (&gEfiXenInfoGuid); > + if (GuidHob == NULL) { > + DEBUG ((EFI_D_INFO, "XenbusInit: No xeninfo ?\n")); > + return EFI_NOT_FOUND; > + } > + XenInfo = (EFI_XEN_INFO*)GET_GUID_HOB_DATA (GuidHob); > + Dev->Hyperpage = XenInfo->HyperPages; > + return EFI_SUCCESS; > +} Could you describe in the git commit a bit on how/where in hvmloader this EfiXenInfoGuid is set and how the OVMF gets a handle on it? Thank you. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |