From patchwork Tue May 31 04:43:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 68866 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1727850qge; Mon, 30 May 2016 21:50:49 -0700 (PDT) X-Received: by 10.176.4.23 with SMTP id 23mr16284846uav.94.1464670249099; Mon, 30 May 2016 21:50:49 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id k68si22862000vkb.80.2016.05.30.21.50.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 May 2016 21:50:49 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7bce-0008W7-Nn; Tue, 31 May 2016 04:49:44 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7bcd-0008TS-H1 for xen-devel@lists.xen.org; Tue, 31 May 2016 04:49:43 +0000 Received: from [85.158.139.211] by server-10.bemta-5.messagelabs.com id 44/2D-11369-6E71D475; Tue, 31 May 2016 04:49:42 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrBIsWRWlGSWpSXmKPExsVSPpHPSfeZuG+ 4wbm3EhZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa0b7i6tMBUs4Kw6c3sfewNjD3sXIxSEkcIZR ounHNGYIZw+jxOL5k4AcTg42AV2JjxunsIPYIgKyEqu75oB1MAtsYpRo+3KRBSQhLGAosWjZJ yYQm0VAVeLfqlawZl4BT4mpS5aD2RICGhIreyeA1XMCxc9PfAkWFxLwkNi37DQjRL2gxMmZT8 BqmAUkJA6+eAHVqyjRtv4kG4QtKXFwxQ0WkCMkBE4xSvz6OpUVImEqseHPJ8YJjIKzkMyahWT WAkamVYzqxalFZalFuoZ6SUWZ6RkluYmZObqGBqZ6uanFxYnpqTmJScV6yfm5mxiBIVrPwMC4 g7Gp1/kQoyQHk5Ior9Vvn3AhvqT8lMqMxOKM+KLSnNTiQ4wyHBxKErwVYr7hQoJFqempFWmZO cBogUlLcPAoifBagKR5iwsSc4sz0yFSpxgVpcR59UESAiCJjNI8uDZYhF5ilJUS5mVkYGAQ4i lILcrNLEGVf8UozsGoJMzbBDKFJzOvBG76K6DFTECL4zN8QBaXJCKkpBoYw5PdLSfYr2VJUvK 5lGImyScQldy1tlGw4OOP5eZBqnlcWz4o/1bmfMz8O7/pzaWdx/N3uSxJdXyf/uq37A/bPalr j9X0r+U95Sz/YtYaeyf1o/r/4sXEJ07/cmzl40Nzzvf07Do0O2P7wdA7V1r1T/c/dfd/dK9sx kYFObbflT/L7ilMzFwfrcRSnJFoqMVcVJwIAK8pgQPLAgAA X-Env-Sender: zhaoshenglong@huawei.com X-Msg-Ref: server-7.tower-206.messagelabs.com!1464670178!42172155!1 X-Originating-IP: [119.145.14.66] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTE5LjE0NS4xNC42NiA9PiA4NTI3\n X-StarScan-Received: X-StarScan-Version: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 23618 invoked from network); 31 May 2016 04:49:42 -0000 Received: from szxga03-in.huawei.com (HELO szxga03-in.huawei.com) (119.145.14.66) by server-7.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 31 May 2016 04:49:42 -0000 Received: from 172.24.1.137 (EHLO szxeml428-hub.china.huawei.com) ([172.24.1.137]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id CCK66918; Tue, 31 May 2016 12:44:51 +0800 (CST) Received: from HGHY1Z002260041.china.huawei.com (10.177.16.142) by szxeml428-hub.china.huawei.com (10.82.67.183) with Microsoft SMTP Server id 14.3.235.1; Tue, 31 May 2016 12:44:41 +0800 From: Shannon Zhao To: Date: Tue, 31 May 2016 12:43:34 +0800 Message-ID: <1464669816-11476-13-git-send-email-zhaoshenglong@huawei.com> X-Mailer: git-send-email 1.9.0.msysgit.0 In-Reply-To: <1464669816-11476-1-git-send-email-zhaoshenglong@huawei.com> References: <1464669816-11476-1-git-send-email-zhaoshenglong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.177.16.142] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020205.574D1716.0048, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: cdebb4981307f43de93ef96276bf1577 Cc: sstabellini@kernel.org, ian.jackson@eu.citrix.com, peter.huangpeng@huawei.com, julien.grall@arm.com, shannon.zhao@linaro.org, wei.liu2@citrix.comg Subject: [Xen-devel] [PATCH 12/14] libxl/arm: Add ACPI module X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" From: Shannon Zhao Add the ARM Multiboot module for ACPI, so UEFI can get the base address of ACPI tables from it. Signed-off-by: Shannon Zhao --- tools/libxl/libxl_arm.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c index 13259f8..e7cb578 100644 --- a/tools/libxl/libxl_arm.c +++ b/tools/libxl/libxl_arm.c @@ -285,6 +285,26 @@ static int make_chosen_node(libxl__gc *gc, void *fdt, bool ramdisk, if (res) return res; } + res = fdt_begin_node(fdt, "modules"); + if (res) return res; + + res = fdt_begin_node(fdt, "module@0"); + if (res) return res; + + res = fdt_property_compat(gc, fdt, 2, "xen,linux-acpi", + "xen,multiboot-module"); + if (res) return res; + + res = fdt_property_regs(gc, fdt, ROOT_ADDRESS_CELLS, ROOT_SIZE_CELLS, + 1, 0, 0); + if (res) return res; + + res = fdt_end_node(fdt); + if (res) return res; + + res = fdt_end_node(fdt); + if (res) return res; + res = fdt_end_node(fdt); if (res) return res;