Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1399605

Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI

From Matt Fleming <matt@codeblueprint.co.uk>
Newsgroups linux.kernel
Subject Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI
Date 2016-05-12 01:30 +0200
Message-ID <rxLJM-1vQ-7@gated-at.bofh.it> (permalink)
References <rvJsK-1Fy-21@gated-at.bofh.it> <rxBr5-8cB-15@gated-at.bofh.it> <rxCwP-Kt-41@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, 11 May, at 09:35:47PM, Shannon Zhao wrote:
> > 
> > Also, why do you need to setup efi.runtime_version here? Isn't that
> > done inside uefi_init()?
> > 
> I don't see any codes which setup efi.runtime_version in uefi_init().
 
Look in the EFI tree,

  https://git.kernel.org/cgit/linux/kernel/git/mfleming/efi.git/tree/drivers/firmware/efi/arm-init.c?h=next#n120

> > Here is how I would have expected this patch to look:
> > 
> >   - Add FDT code to find hypervisor EFI params
> > 
> >   - Force enable EFI_RUNTIME_SERVICES for Xen and call
> >     xen_efi_runtime_setup() inside xen_guest_init()
> > 
> >   - Change arm_enable_runtime_services() to handle the case where
> >     EFI_RUNTIME_SERVICES is already set
> > 
> > Am I misunderstanding some ordering issues?
> 
> Since xen_guest_init() and arm_enable_runtime_services() are both
> early_initcall and the calling order is random I think.

Urgh, right, I missed that.

> And when we call xen_efi_runtime_setup() and setup
> efi.runtime_version in xen_guest_init(), the efi.systab might be
> NULL. So it needs to map the systanle explicitly before we use
> efi.systab.

Could you explain why you need to copy efi.runtime_version instead of
letting the existing code in uefi_init() set it up?

Also, efi.systab isn't used by xen_efi_runtime_setup() as far I can
see, not sure why you need that either?

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI Shannon Zhao <zhaoshenglong@huawei.com> - 2016-05-06 10:40 +0200
  Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI Mathieu Poirier <mathieu.poirier@linaro.org> - 2016-05-06 18:00 +0200
    Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI Matt Fleming <matt@codeblueprint.co.uk> - 2016-05-11 14:30 +0200
  Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI Matt Fleming <matt@codeblueprint.co.uk> - 2016-05-11 14:30 +0200
    Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI Shannon Zhao <shannon.zhao@linaro.org> - 2016-05-11 15:40 +0200
      Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI Matt Fleming <matt@codeblueprint.co.uk> - 2016-05-12 01:30 +0200
        Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI Shannon Zhao <zhaoshenglong@huawei.com> - 2016-05-12 04:30 +0200
          Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI Matt Fleming <matt@codeblueprint.co.uk> - 2016-05-12 12:10 +0200
            Re: [PATCH] Xen: EFI: Parse DT parameters for Xen specific UEFI Stefano Stabellini <sstabellini@kernel.org> - 2016-05-12 13:00 +0200

csiph-web