From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: Design doc of adding ACPI support for arm64 on Xen - version 5 Date: Tue, 1 Sep 2015 12:28:07 +0100 Message-ID: <55E58BC7.7090403@citrix.com> References: <55E02DC5.4090202@huawei.com> <55E05A2F.1090305@citrix.com> <55E1042C.6000308@linaro.org> <55E43E36.90108@citrix.com> <55E4428C.7020308@huawei.com> <55E449DA.6080309@citrix.com> <55E525A8.3010302@huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <55E525A8.3010302@huawei.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: Shannon Zhao , Shannon Zhao , xen-devel , Christoffer Dall , Ian Campbell , Stefano Stabellini , Stefano Stabellini , Jan Beulich , Parth Dixit , andrew@fubar.geek.nz, Boris Ostrovsky , David Vrabel , Roger Pau Monne Cc: Hangaohuai , "Huangpeng (Peter)" List-Id: xen-devel@lists.xenproject.org Hi Shannon, On 01/09/15 05:12, Shannon Zhao wrote: > I tried this. Directly use the "kinfo->gnttab_start = __pa(_stext)" as > the address where these tables are mapped to Dom0. But the value of > gnttab_start is lower than the start of RAM, so Dom0 ingore these > regions and boot failed. see early_init_dt_add_memory_arch() Can you elaborate? How Linux will fail? If this region is marked as reserved in the UEFI memory map, Linux will mark the memory as reserved. Furthermore, *ioremap is used in order to map the EFI tables so I don't see a reason to fail. >>> >>> In addition, how does UEFI find the space to place the tables? Could we >>> use the same way? >> >> I think that those tables are living in the RAM and region used are >> marked as reserved. >> > > So can we use the same way for Dom0? I think the Linux will reserve the > regions for EFI in reserve_regions(). Therefore, Dom0 will not use these > reserved regions for other use. Jan had some concerned about putting the EFI tables in RAM owned by DOM0 (see [1]). Can you explain how Linux behave with EFI tables. I.e: - Where tables are expected to live (RAM, others...)? - Are thoses regions freed at some point to be re-use? - ... Regards, [1] http://lists.xen.org/archives/html/xen-devel/2015-08/msg02167.html -- Julien Grall