From patchwork Mon Sep 25 10:52:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 9969697 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 1C9A9602D8 for ; Mon, 25 Sep 2017 10:56:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13A1028BAA for ; Mon, 25 Sep 2017 10:56:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 084B228BFF; Mon, 25 Sep 2017 10:56:10 +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 9786E28BAA for ; Mon, 25 Sep 2017 10:56:09 +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 1dwR1n-0008NP-Tv; Mon, 25 Sep 2017 10:54:19 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dwR1m-0008Ll-8C for xen-devel@lists.xenproject.org; Mon, 25 Sep 2017 10:54:18 +0000 Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id D1/71-02202-950E8C95; Mon, 25 Sep 2017 10:54:17 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLIsWRWlGSWpSXmKPExsXitHRDpG7kgxO RBsf281l83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBl7JjQzFtxirZj7sJe5gfE9SxcjJ4eEgL/E rJMf2EBsNgEdiYtzdwLZHBwiAioSt/cadDFycTALHGSUOPZkLytIjbCAi8T8P7/A6lkEVCUaf +1nBrF5BawkDk5/wQ7SKyGgJ/FjuyGIyQkU/rw0CaRCSMBS4sD3XjaIakGJkzOfgF3ALKAp0b r9NzuELS/RvHU2M0S9okT/vAdsExj5ZiFpmYWkZRaSlgWMzKsYNYpTi8pSi3QNzfWSijLTM0p yEzNzdA0NTPVyU4uLE9NTcxKTivWS83M3MQIDjQEIdjBePO15iFGSg0lJlPcu34lIIb6k/JTK jMTijPii0pzU4kOMMhwcShK8ZveBcoJFqempFWmZOcCQh0lLcPAoifAKgaR5iwsSc4sz0yFSp xiNOW48vP6HiaPj5t0/TEIsefl5qVLivP4gpQIgpRmleXCDYLF4iVFWSpiXEeg0IZ6C1KLczB JU+VeM4hyMSsK8IiBTeDLzSuD2vQI6hQnolN6pYKeUJCKkpBoY7beoLf3FcDZnX2qUflfTkc1 hMs9eLliRvP1Mu/GHD7avet2PzFyVHGInbrza1/b7lZdLr2uuLnB+tOj20Z4rX/gO9vae2nsk IjA55HOS3Yu6aeki0knFNk7ylhs8OYRr7vpdSz7Nc6khv8X/2CL7XU4T+faWnzxlaSs1w4XX8 HqicspfO7OTSizFGYmGWsxFxYkA8NYEucACAAA= X-Env-Sender: prvs=43456bc54=roger.pau@citrix.com X-Msg-Ref: server-9.tower-206.messagelabs.com!1506336855!113211693!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 3555 invoked from network); 25 Sep 2017 10:54:16 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-9.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 25 Sep 2017 10:54:16 -0000 X-IronPort-AV: E=Sophos;i="5.42,435,1500940800"; d="scan'208";a="441052523" From: Roger Pau Monne To: Date: Mon, 25 Sep 2017 11:52:00 +0100 Message-ID: <20170925105206.66507-17-roger.pau@citrix.com> X-Mailer: git-send-email 2.13.5 (Apple Git-94) In-Reply-To: <20170925105206.66507-1-roger.pau@citrix.com> References: <20170925105206.66507-1-roger.pau@citrix.com> MIME-Version: 1.0 Cc: wei.liu2@citrix.com, boris.ostrovsky@oracle.com, Roger Pau Monne , Ian Jackson Subject: [Xen-devel] [PATCH v3 16/22] libxl: add PVH support to memory functions 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 Signed-off-by: Roger Pau Monné Acked-by: Ian Jackson --- Cc: Ian Jackson Cc: Wei Liu --- tools/libxl/libxl_mem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libxl/libxl_mem.c b/tools/libxl/libxl_mem.c index f5d2530d8c..e551e09fed 100644 --- a/tools/libxl/libxl_mem.c +++ b/tools/libxl/libxl_mem.c @@ -460,6 +460,7 @@ int libxl_domain_need_memory(libxl_ctx *ctx, *need_memkb = b_info->target_memkb; switch (b_info->type) { + case LIBXL_DOMAIN_TYPE_PVH: case LIBXL_DOMAIN_TYPE_HVM: *need_memkb += b_info->shadow_memkb + LIBXL_HVM_EXTRA_MEMORY; if (libxl_defbool_val(b_info->device_model_stubdomain))