From patchwork Tue May 31 05:03:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 68881 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1732546qge; Mon, 30 May 2016 22:05:20 -0700 (PDT) X-Received: by 10.159.36.244 with SMTP id 107mr16002458uar.36.1464671115010; Mon, 30 May 2016 22:05:15 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id l30si19437745ual.171.2016.05.30.22.05.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 May 2016 22:05:15 -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 1b7bqR-0003Fc-V9; Tue, 31 May 2016 05:03:59 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7bqQ-0003F4-MW for xen-devel@lists.xen.org; Tue, 31 May 2016 05:03:58 +0000 Received: from [85.158.137.68] by server-14.bemta-3.messagelabs.com id 20/1A-12134-D3B1D475; Tue, 31 May 2016 05:03:57 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGIsWRWlGSWpSXmKPExsVSPpHPSddW2jf cYNJKIYslHxezODB6HN39mymAMYo1My8pvyKBNaP9xVWmgiWcFQdO72NvYOxh72Lk4hASOMUo Mev2IhYIZw+jxKWJP4AynBxsAroSHzdOAbNFBGQlVnfNAetgFtjIKPHk7Ve2LkYODmEBC4lFj eYgJouAqsTavUog5bwCnhL/VhxkArElBDQkVvZOYAGxOYHiRz4+B7OFBDwkWht3MELUC0qcnP kELM4sICFx8MULZoheRYm29SfZIGxJiYMrboDdKQFy9LRlh6AWmErcO7WEfQKj4Cwks2YhmbW AkWkVo3pxalFZapGuuV5SUWZ6RkluYmaOrqGBsV5uanFxYnpqTmJSsV5yfu4mRmB4MgDBDsbG 706HGCU5mJREea1++4QL8SXlp1RmJBZnxBeV5qQWH2KU4eBQkuDVlfINFxIsSk1PrUjLzAFGC kxagoNHSYTXCCTNW1yQmFucmQ6ROsWoKCXO+1YSKCEAksgozYNrg0XnJUZZKWFeRqBDhHgKUo tyM0tQ5V8xinMwKgnzOoCM58nMK4Gb/gpoMRPQ4vgMH5DFJYkIKakGxhklycLGQuVyjLUmhc8 jb6QxOmpq/LBN01w10dx/4fv7cb+r1dhNH18w+NuYbL/l7vV/VR5H3dQTbs10eJGv0+aUn1dW s/pmXPDMrX8PpfKwnvx8adX0EsHph2/kZLE67D96LWfC91RPVU9dZ2f/5hW1Vu564o69sj6Kl u+uBGx0W+LD+uqnEktxRqKhFnNRcSIA8HlhuskCAAA= X-Env-Sender: zhaoshenglong@huawei.com X-Msg-Ref: server-9.tower-31.messagelabs.com!1464671033!6201804!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.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 43795 invoked from network); 31 May 2016 05:03:56 -0000 Received: from szxga03-in.huawei.com (HELO szxga03-in.huawei.com) (119.145.14.66) by server-9.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 31 May 2016 05:03:56 -0000 Received: from 172.24.1.60 (EHLO SZXEML429-HUB.china.huawei.com) ([172.24.1.60]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id CCK68372; Tue, 31 May 2016 13:03:41 +0800 (CST) Received: from HGHY1Z002260041.china.huawei.com (10.177.16.142) by SZXEML429-HUB.china.huawei.com (10.82.67.184) with Microsoft SMTP Server id 14.3.235.1; Tue, 31 May 2016 13:03:33 +0800 From: Shannon Zhao To: Date: Tue, 31 May 2016 13:03:04 +0800 Message-ID: <1464670986-10256-13-git-send-email-zhaoshenglong@huawei.com> X-Mailer: git-send-email 1.9.0.msysgit.0 In-Reply-To: <1464670986-10256-1-git-send-email-zhaoshenglong@huawei.com> References: <1464670986-10256-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.574D1B2E.010F, 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: 6bf761bca7fe4ca11ee81f45159e85d7 Cc: sstabellini@kernel.org, wei.liu2@citrix.com, ian.jackson@eu.citrix.com, peter.huangpeng@huawei.com, julien.grall@arm.com, shannon.zhao@linaro.org Subject: [Xen-devel] [PATCH RESEND 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;