From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: [PATCH RFC 04/18] OvmfPkg/XenbusDxe: Add support to make Xen Hypercalls. Date: Wed, 16 Jul 2014 13:37:05 -0400 Message-ID: <20140716173705.GF30483@laptop.dumpdata.com> References: <1405523747-5024-1-git-send-email-anthony.perard@citrix.com> <1405523747-5024-5-git-send-email-anthony.perard@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1405523747-5024-5-git-send-email-anthony.perard@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Anthony PERARD Cc: EDK2 devel , Xen Devel List-Id: xen-devel@lists.xenproject.org > 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 > +#include > +#include > + > +#include "XenbusDxe.h" > +#include "XenHypercall.h" > + > +#include > +#include > + > +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.