From patchwork Tue May 31 05:02:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 68879 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp1732518qge; Mon, 30 May 2016 22:05:16 -0700 (PDT) X-Received: by 10.55.145.6 with SMTP id t6mr29185267qkd.206.1464671113205; Mon, 30 May 2016 22:05:13 -0700 (PDT) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id j60si29934681qtd.67.2016.05.30.22.05.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 May 2016 22:05:13 -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-0003FN-NP; 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-0003F3-FY for xen-devel@lists.xen.org; Tue, 31 May 2016 05:03:58 +0000 Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id 17/11-25578-D3B1D475; Tue, 31 May 2016 05:03:57 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrBIsWRWlGSWpSXmKPExsVSPpHPUddW2jf c4PoOGYslHxezODB6HN39mymAMYo1My8pvyKBNWPKtDaWghXcFd/6trA0MPZydjFycQgJnGGU mLd7OiOEs4dR4vm07axdjJwcbAK6Eh83TmEHsUUEZCVWd81hByliFtjIKPHk7Vc2kISwQLDEt UMHGEFsFgFViR2XVoPZvAIeEt9mPGcCsSUENCRW9k5gAbE5BTwljnx8DmYLAdW0Nu6AqheUOD nzCVicWUBC4uCLF8wQvYoSbetPskHYkhIHV9xgATlCQuAUo8T22ZMYIRKmEpNfLGScwCg4C8m sWUhmLWBkWsWoXpxaVJZapGukl1SUmZ5RkpuYmaNraGCsl5taXJyYnpqTmFSsl5yfu4kRGKL1 DAyMOxhPNTsfYpTkYFIS5bX67RMuxJeUn1KZkVicEV9UmpNafIhRhoNDSYL3gKRvuJBgUWp6a kVaZg4wWmDSEhw8SiK8RlJAad7igsTc4sx0iNQpRkUpcd63IH0CIImM0jy4NliEXmKUlRLmZW RgYBDiKUgtys0sQZV/xSjOwagkzMsBMp4nM68EbvoroMVMQIvjM3xAFpckIqSkGhi5v+rq5Fv 3PekU2PrvHqMqy/kX8wxP/Txb/3Vet18xZ4J7d5RMvvZtTmaFuh5V4TCJH0rNTR8W14QsWaX8 2m/yC++MZq0FP/Ku96y5PlXr1aX9DjsaOpc/KnHd9mptzCm3/Q4b15/5kPFyp3OK9f4qI9kvd x6xdfvfNd+5m0dCZsFdm0Cj6/eVWIozEg21mIuKEwFfSxoOywIAAA== X-Env-Sender: zhaoshenglong@huawei.com X-Msg-Ref: server-6.tower-31.messagelabs.com!1464671032!16626553!1 X-Originating-IP: [119.145.14.65] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTE5LjE0NS4xNC42NSA9PiA3NzQ2Mw==\n X-StarScan-Received: X-StarScan-Version: 8.34; banners=-,-,- X-VirusChecked: Checked Received: (qmail 64071 invoked from network); 31 May 2016 05:03:57 -0000 Received: from szxga02-in.huawei.com (HELO szxga02-in.huawei.com) (119.145.14.65) by server-6.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 31 May 2016 05:03:57 -0000 Received: from 172.24.1.137 (EHLO SZXEML429-HUB.china.huawei.com) ([172.24.1.137]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DHY49909; Tue, 31 May 2016 13:03:36 +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:26 +0800 From: Shannon Zhao To: Date: Tue, 31 May 2016 13:02:55 +0800 Message-ID: <1464670986-10256-4-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.0A020201.574D1B2A.0081, 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: f38ceb691c6c87d7592ff2bc5b4bc1fb 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 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;