xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Shannon Zhao <zhaoshenglong@huawei.com>
To: Jan Beulich <JBeulich@suse.com>, Julien Grall <julien.grall@citrix.com>
Cc: hangaohuai@huawei.com, ian.campbell@citrix.com,
	stefano.stabellini@eu.citrix.com, andrew@fubar.geek.nz,
	peter.huangpeng@huawei.com, stefano.stabellini@citrix.com,
	david.vrabel@citrix.com, boris.ostrovsky@oracle.com,
	xen-devel@lists.xen.org, parth.dixit@linaro.org,
	christoffer.dall@linaro.org, shannon.zhao@linaro.org
Subject: Re: Design doc of adding ACPI support for arm64 on Xen - version 3
Date: Tue, 18 Aug 2015 15:46:29 +0800	[thread overview]
Message-ID: <55D2E2D5.9070805@huawei.com> (raw)
In-Reply-To: <55D2F472020000780009B8CC@prv-mh.provo.novell.com>



On 2015/8/18 15:01, Jan Beulich wrote:
>>>> On 18.08.15 at 08:43, <julien.grall@citrix.com> wrote:
>> > Hi Jan,
>> > 
>> > On 17/08/2015 22:10, Jan Beulich wrote:
>>>>>> >>>>> Julien Grall <julien.grall@citrix.com> 08/17/15 6:27 PM >>>
>>>> >>> On 17/08/2015 08:33, Jan Beulich wrote:
>>>>>>>> >>>>>>> On 14.08.15 at 16:59, <shannon.zhao@linaro.org> wrote:
>>>>>> >>>>> b) Create EFI_MEMORY_DESCRIPTOR table. This will add memory start and
>>>>>> >>>>> size information of Dom0. And Dom0 will get the memory information
>>>>>> >>>>> through this EFI table.
>>>>> >>>>
>>>>> >>>> To some degree the same applies here: While I see that you have no
>>>>> >>>> legacy vehicle like x86's E820, I also don't see how Dom0 - not being
>>>>> >>>> able to make EFI boot or runtime services calls - would get hold of this
>>>>> >>>> table. And if a non-EFI mechanism is to be used here, using the EFI
>>>>> >>>> data structure would turn out to be just an arbitrary (or convenience)
>>>>> >>>> decision, not something inherently required. Which I think should be
>>>>> >>>> said explicitly if so, rather than leaving the reader guess.
>>>> >>>
>>>> >>> It's not an arbitrary decision, when UEFI stub in Linux is using device
>>>> >>> tree properties to pass the UEFI table to the kernel ([1]).
>>>> >>>
>>>> >>> When booting on Xen with ACPI, dom0 will use the non-EFI entry point.
>>>> >>> The easiest way to pass the memory information to Linux is using the
>>>> >>> UEFI DT properties.
>>> >>
>>> >> In which case it is even more arbitrary to use the EFI data structure to
>>> >> convey memory information (instead of expressing it in plain DT, which is
>>> >> how I blindly assume non-EFI does it). Of course there's the small chance
>>> >> that "UEFI DT properties" implies a certain binary format, but it's still 
>> > odd
>>> >> for a non-EFI entry point to assume EFI properties to be there...
>> > 
>> > Linux is able to boot either on ACPI or DT. When ACPI is used, the EFI 
>> > stub (mandatory) will create a small DT in order to pass the command 
>> > line and other informations (such as the EFI memory table) to the 
>> > kernel. This is because the stub is self-contained and and never use 
>> > variable living in the kernel.
>> > 
>> > In order to know whether you are booting using DT or ACPI, they check if 
>> > the DT contains only the /chosen node.
>> > 
>> > Actually the EFI-stub will always jumped on the non-EFI path.
>> > 
>> > By passing the minimal DT as suggested on the design doc, we are 
>> > avoiding to get a different code path for Xen in the kernel and we are 
>> > finally acting as the EFI-stub was a nop for DOM0.
>> > 
>> > So I don't see how this would be arbitrary...
> Indeed with your explanation this doesn't look arbitrary anymore.
> But none of this was spelled out in the original document.

Oh, sorry. Will add more details explanation in next version.

-- 
Shannon

  reply	other threads:[~2015-08-18  7:46 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-14 14:59 Design doc of adding ACPI support for arm64 on Xen - version 3 Shannon Zhao
2015-08-14 15:17 ` Julien Grall
2015-08-17 13:01   ` Shannon Zhao
2015-08-17 16:10     ` Julien Grall
2015-08-18  3:19       ` Shannon Zhao
2015-08-18  6:36         ` Julien Grall
2015-08-18  7:23           ` Shannon Zhao
2015-08-18 16:13             ` Julien Grall
2015-08-14 15:59 ` Konrad Rzeszutek Wilk
2015-08-17 15:33 ` Jan Beulich
2015-08-17 16:19   ` Julien Grall
2015-08-18  5:10     ` Jan Beulich
2015-08-18  6:43       ` Julien Grall
2015-08-18  7:01         ` Jan Beulich
2015-08-18  7:46           ` Shannon Zhao [this message]
2015-08-18 19:01           ` Julien Grall
2015-08-18  3:41   ` Shannon Zhao
2015-08-18  5:14     ` Jan Beulich
2015-08-18  7:35       ` Shannon Zhao
2015-08-18  8:15         ` Jan Beulich
2015-08-18  8:21           ` Shannon Zhao
2015-08-18  9:11             ` Jan Beulich
2015-08-18  9:34               ` Shannon Zhao
2015-08-18 19:00                 ` Julien Grall
2015-09-02 11:43                   ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55D2E2D5.9070805@huawei.com \
    --to=zhaoshenglong@huawei.com \
    --cc=JBeulich@suse.com \
    --cc=andrew@fubar.geek.nz \
    --cc=boris.ostrovsky@oracle.com \
    --cc=christoffer.dall@linaro.org \
    --cc=david.vrabel@citrix.com \
    --cc=hangaohuai@huawei.com \
    --cc=ian.campbell@citrix.com \
    --cc=julien.grall@citrix.com \
    --cc=parth.dixit@linaro.org \
    --cc=peter.huangpeng@huawei.com \
    --cc=shannon.zhao@linaro.org \
    --cc=stefano.stabellini@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).