From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: Usage of efi_enabled - Was: Re: [PATCH RFC 33/35] arm : acpi enable efi for acpi Date: Wed, 11 Feb 2015 10:49:26 +0000 Message-ID: <1423651766.27551.11.camel@citrix.com> References: <1423058539-26403-1-git-send-email-parth.dixit@linaro.org> <1423058539-26403-34-git-send-email-parth.dixit@linaro.org> <54DB261B.2090706@linaro.org> <54DB3CCE020000780005EF07@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <54DB3CCE020000780005EF07@mail.emea.novell.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: Jan Beulich Cc: Julien Grall , tim@xen.org, "xen-devel@lists.xen.org" , Roy Franz , stefano.stabellini@citrix.com, Parth Dixit , christoffer.dall@linaro.org List-Id: xen-devel@lists.xenproject.org On Wed, 2015-02-11 at 10:28 +0000, Jan Beulich wrote: > >>> On 11.02.15 at 10:51, wrote: > >> --- a/xen/common/efi/runtime.c > >> +++ b/xen/common/efi/runtime.c > >> @@ -11,7 +11,13 @@ DEFINE_XEN_GUEST_HANDLE(CHAR16); > >> #ifndef COMPAT > >> > >> #ifdef CONFIG_ARM /* Disabled until runtime services implemented */ > >> + > >> +#if defined(CONFIG_ARM_64) && defined(CONFIG_ACPI) > >> +const bool_t efi_enabled = 1; > >> +#else > >> const bool_t efi_enabled = 0; > >> +#endif > >> + > > > > Thinking a bit more about this variable. The usage of the variable is > > unclear. Does it mean that Xen is supporting EFI runtime or Xen has been > > boot with EFI? > > The latter (it just so happens that it also means the former on x86 > for the time being). > > > The binary produced on ARM64 always is able to boot with and without > > EFI. So it would seems logical to me that the value of this variable may > > change at runtime. > > Correct - other than (currently) on x86. IOW it should become non-const on !x86? Does that also imply that some code which is using it to signal availability of Runtime Services should be switch to some other (new?) variable? Ian