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: Mon, 31 Aug 2015 12:44:54 +0100 Message-ID: <55E43E36.90108@citrix.com> References: <55E02DC5.4090202@huawei.com> <55E05A2F.1090305@citrix.com> <55E1042C.6000308@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <55E1042C.6000308@linaro.org> 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 On 29/08/2015 02:00, Shannon Zhao wrote: > Hi Julien, > > On 2015/8/28 20:55, Julien Grall wrote: >> Hi Shannon, >> >> On 28/08/15 10:45, Shannon Zhao wrote: >>> 2. Copy and change some EFI and ACPI tables >>> ------------------------------------------- >> >> [..] >> >>> All above tables will be mapped to Dom0 non-RAM space(e.g. the space >>> after Dom0 RAM). >> >> If I understand correctly what you are saying, you plan to put the >> tables just after the Dom0 RAM bank. Although, there can be multiple >> banks and how can you be so sure that there will be no MMIO at this place? >> >> > > Currently I use the last RAM bank(kinfo->mem.bank[nr_banks - 1]) to > calculate the start address of non-RAM place. I'm not sure there will be > no MMIO at that place. Do you have any good idea to find such sure and > safe non-ram place? It's not a safe place because with the direct mapping for the RAM, DOM0 RAM could live in the last bank. Furthermore, for the grant table region, we are re-using the RAM region used by Xen (find_gnttab_region), so it may clash with it too because Xen is relocated as high as possible. Although, given that the grant table region will be found by Linux when ACPI is used (see your section 3.), we could be able to re-use the Xen region to store the new tables/structures. Regards, -- Julien Grall