From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v2 24/29] Ovmf/Xen: add Xen PV console SerialPortLib driver Date: Tue, 27 Jan 2015 11:48:12 +0000 Message-ID: <54C77AFC.2070306@linaro.org> References: <1422299011-2409-1-git-send-email-ard.biesheuvel@linaro.org> <1422299011-2409-25-git-send-email-ard.biesheuvel@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1422299011-2409-25-git-send-email-ard.biesheuvel@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ard Biesheuvel , edk2-devel@lists.sourceforge.net, lersek@redhat.com, olivier.martin@arm.com, roy.franz@linaro.org, leif.lindholm@linaro.org, stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, anthony.perard@citrix.com, christoffer.dall@linaro.org, xen-devel@lists.xen.org, ilias.biris@linaro.org List-Id: xen-devel@lists.xenproject.org Hi Ard, On 26/01/15 19:03, Ard Biesheuvel wrote: > +RETURN_STATUS > +EFIAPI > +SerialPortInitialize ( > + VOID > + ) > +{ > + mXenConsoleEventChain.port = (UINT32)XenHypercallHvmGetParam (HVM_PARAM_CONSOLE_EVTCHN); > + mXenConsoleInterface = (struct xencons_interface *)(UINTN) > + (XenHypercallHvmGetParam (HVM_PARAM_CONSOLE_PFN) << EFI_PAGE_SHIFT); IIRC, x86 PVH is using a different way to get the console PFN. It might be good to add a comment stating we only support x86 HVM and ARM guest here. Regards, -- Julien Grall