From patchwork Tue May 31 04:43:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 9143225 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E7E9260777 for ; Tue, 31 May 2016 04:51:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBA7327C05 for ; Tue, 31 May 2016 04:51:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD4A628185; Tue, 31 May 2016 04:51:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6D05027C05 for ; Tue, 31 May 2016 04:51:16 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7bc7-0008JG-4d; Tue, 31 May 2016 04:49:11 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7bc5-0008J6-HR for xen-devel@lists.xen.org; Tue, 31 May 2016 04:49:09 +0000 Received: from [193.109.254.147] by server-12.bemta-14.messagelabs.com id 3A/3F-19610-4C71D475; Tue, 31 May 2016 04:49:08 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrGIsWRWlGSWpSXmKPExsVi9XuGg+4Rcd9 wg1dL+C2WfFzM4sDocXT3b6YAxijWzLyk/IoE1owp09pYClZwV3zr28LSwNjL2cXIxSEkcIZR 4viFqWxdjJxAzh5Gib67iSA2m4CuxMeNU9hBbBEBWYnVXXPYQRqYBTYxSrR9ucgCkhAW8JGYt e44I4jNIqAqsXbqAtYuRg4OXgEPiTsfwHolBDQkVvZOACvnFPCUOD/xJTPELg+JfctOg7XyCg hKnJz5BKyGWUBC4uCLF8wQvYoSbetPskHYkhIHV9xgAblBQuAUo8TX2e+gikwlunc8YZzAKDg LyaxZSGYtYGRaxahenFpUllqka6mXVJSZnlGSm5iZo2toaKKXm1pcnJiempOYVKyXnJ+7iREY ngxAsIOxf4rzIUZJDiYlUV6r3z7hQnxJ+SmVGYnFGfFFpTmpxYcYZTg4lCR4b4r5hgsJFqWmp 1akZeYAIwUmLcHBoyTCqwSMFiHe4oLE3OLMdIjUKUZFKXHeBSB9AiCJjNI8uDZYdF5ilJUS5m UEOkSIpyC1KDezBFX+FaM4B6OSMO9WkCk8mXklcNNfAS1mAlocn+EDsrgkESEl1cA4RcfsGNO P5b7r11YskJ1kcIVpy5elQnFdEg7R1c2WLqmxvr7lIe3yT9mETDVTp4XYnOF98mlX86ucmM9n 0lKXNqi3Hb3APC/hSPn7J6G6QYEzvmdePxfN5eKk/+t3gmLXmtre3dPfvtvXpmguy1OvIPXzo s/O4qMmrVwL1vo/aQmf5TL1pLcSS3FGoqEWc1FxIgCHto1SyQIAAA== X-Env-Sender: zhaoshenglong@huawei.com X-Msg-Ref: server-4.tower-27.messagelabs.com!1464670131!43928769!1 X-Originating-IP: [58.251.152.64] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 56744 invoked from network); 31 May 2016 04:48:59 -0000 Received: from szxga01-in.huawei.com (HELO szxga01-in.huawei.com) (58.251.152.64) by server-4.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 31 May 2016 04:48:59 -0000 Received: from 172.24.1.137 (EHLO szxeml428-hub.china.huawei.com) ([172.24.1.137]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DLK67794; Tue, 31 May 2016 12:44:41 +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:34 +0800 From: Shannon Zhao To: Date: Tue, 31 May 2016 12:43:25 +0800 Message-ID: <1464669816-11476-4-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.0A020204.574D16BA.00A0, 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: 39406dfe973fbebb44fcc002ba49fa55 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 03/14] libxc: Add placeholders for ACPI tables blob and size 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" X-Virus-Scanned: ClamAV using ClamSMTP From: Shannon Zhao Currently it only needs ACPI table RSDP, XSDT, GTDT, MADT, FADT, DSDT for ARM VM. So only add placeholders for them here. Signed-off-by: Shannon Zhao --- tools/libxc/include/xc_dom.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tools/libxc/include/xc_dom.h b/tools/libxc/include/xc_dom.h index 6cb10c4..0fe54dd 100644 --- a/tools/libxc/include/xc_dom.h +++ b/tools/libxc/include/xc_dom.h @@ -56,6 +56,20 @@ struct xc_dom_phys { xen_pfn_t count; }; +struct acpitable { + void *table; + size_t size; +}; + +struct acpitable_blob { + struct acpitable rsdp; + struct acpitable xsdt; + struct acpitable gtdt; + struct acpitable madt; + struct acpitable fadt; + struct acpitable dsdt; +}; + struct xc_dom_image { /* files */ void *kernel_blob; @@ -64,6 +78,8 @@ struct xc_dom_image { size_t ramdisk_size; void *devicetree_blob; size_t devicetree_size; + struct acpitable_blob *acpitable_blob; + size_t acpitable_size; size_t max_kernel_size; size_t max_ramdisk_size; @@ -92,6 +108,7 @@ struct xc_dom_image { struct xc_dom_seg p2m_seg; struct xc_dom_seg pgtables_seg; struct xc_dom_seg devicetree_seg; + struct xc_dom_seg acpi_seg; struct xc_dom_seg start_info_seg; /* HVMlite only */ xen_pfn_t start_info_pfn; xen_pfn_t console_pfn;