From: "Jan Beulich" Subject: Re: [PATCH v3 2/2] efi: Avoid calling boot services after ExitBootServices() Date: Mon, 01 Jun 2015 11:48:37 +0100 Message-ID: <556C54A5020000780007FA98@mail.emea.novell.com> References: <1433153878-32199-1-git-send-email-ross.lagerwall@citrix.com> <1433153878-32199-2-git-send-email-ross.lagerwall@citrix.com> <556C3363.3020404@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <556C3363.3020404@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper , Ross Lagerwall Cc: Keir Fraser , Tim Deegan , Stefano Stabellini , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 01.06.15 at 12:26, wrote: > On 01/06/15 11:17, Ross Lagerwall wrote: >> --- a/xen/common/efi/boot.c >> +++ b/xen/common/efi/boot.c >> @@ -216,6 +216,12 @@ static void __init noreturn blexit(const CHAR16 *str) >> PrintStr((CHAR16 *)str); >> PrintStr(newline); >> >> + if ( !efi_bs ) >> + { >> + for ( ; ; ) >> + ; > > At the very least this should be halt() to avoid spinning in a busy > loop, and probably with a local_irq_disable() ahead of the for. Suitably abstracted, yes: ARM has no halt(), and I don't think we should assume local_irq_disable() can be used here in a completely arch-independent fashion. I.e. perhaps the whole body of the if() should become a new arch hook. Jan