From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753935AbcDGBk0 (ORCPT ); Wed, 6 Apr 2016 21:40:26 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:40216 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752024AbcDGBkY (ORCPT ); Wed, 6 Apr 2016 21:40:24 -0400 Message-ID: <5705BA61.7000205@huawei.com> Date: Thu, 7 Apr 2016 09:39:45 +0800 From: Shannon Zhao User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Julien Grall , Shannon Zhao , , CC: , , , , , , , Subject: Re: [PATCH v10 00/17] Add ACPI support for Xen Dom0 on ARM64 References: <1459525755-36968-1-git-send-email-shannon.zhao@linaro.org> <5704F3E1.7020508@arm.com> In-Reply-To: <5704F3E1.7020508@arm.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.16.142] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090201.5705BA7E.003B,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: a788d275218d763993c77a16def5bdf4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Julien, On 2016/4/6 19:32, Julien Grall wrote: > Hi Shannon, > > On 01/04/2016 16:48, Shannon Zhao wrote: >> This patch set adds ACPI support for Xen Dom0 on ARM64. The relevant Xen >> ACPI on ARM64 design document could be found from [1]. >> >> This patch set adds a new FDT node "uefi" under /hypervisor to pass UEFI >> information. Introduce a bus notifier of AMBA and Platform bus to map >> the new added device's MMIO space. Make Xen domain use >> xlated_setup_gnttab_pages to setup grant table and a new hypercall to >> get event-channel irq. >> >> Regarding the initialization flow of Linux kernel, it needs to move >> xen_early_init() before efi_init(). Then xen_early_init() will check >> whether it runs on Xen through the /hypervisor node and efi_init() will >> call a new function fdt_find_xen_uefi_params(), to parse those >> xen,uefi-* parameters just like the existing efi_get_fdt_params(). >> >> And in arm64_enable_runtime_services() it will check whether it runs on >> Xen and call another new function xen_efi_runtime_setup() to setup >> runtime service instead of efi_native_runtime_setup(). The >> xen_efi_runtime_setup() will assign the runtime function pointers with >> the functions of driver/xen/efi.c. >> >> And since we pass a /hypervisor node and a /chosen node to Dom0, it >> needs to check whether the DTS only contains a /hypervisor node and a >> /chosen node in acpi_boot_table_init(). >> >> Patches are tested on FVP base model. They can be fetched from[2]. > > I have tested this series and Linux is booting up to the prompt: > > Tested-by: Julien Grall Thanks a lot. There are several patches which you didn't give your comments. So I assume you will review them. If so, I'll wait and update this series later. Thanks, -- Shannon