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: 68862 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1727746qge; Mon, 30 May 2016 21:50:24 -0700 (PDT) X-Received: by 10.31.58.77 with SMTP id h74mr16179724vka.46.1464670224425; Mon, 30 May 2016 21:50:24 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id v5si22840791vkg.102.2016.05.30.21.50.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 May 2016 21:50:24 -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 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" 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;