From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andres Lagar-Cavilla Subject: [PATCH 3/7] libxenlight resend: 8mb physmap slack for pv domains Date: Wed, 02 Dec 2009 13:00:31 -0500 Message-ID: <4B16AB3F.4000809@lagarcavilla.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070707040204070407030808" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Stefano Stabellini , Vincent Hanquez , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------070707040204070407030808 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Contemplate 8MB of slack for PV domains, since they do ballooning (or flipping network rx) and need some extra room in their pfn space. Note that this does not allocate any extra memory to the domain, it simply extends the physmap with some extra room for "bounce bufffering back" pfn's that are yielded to dom0. Signed-off-by: Andres Lagar-Cavilla --------------070707040204070407030808 Content-Type: text/plain; name="03_8mb_pv_mem_slack.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="03_8mb_pv_mem_slack.patch" # HG changeset patch # User Andres Lagar-Cavilla # Date 1259252810 18000 # Node ID ac2ad391d9290a5c554c9b809a6a23bb73aa25a2 # Parent f5f07c0161eef51c265a1d0acbdf7da84cfc0fef Contemplate 8MB of slack for PV domains, since they do ballooning (or flipping network rx) and need some extra room in their pfn space. Note that this does not allocate any extra memory to the domain, it simply extends the physmap with some extra room for "bounce bufffering back" pfn's that are yielded to dom0. Signed-off-by: Andres Lagar-Cavilla diff -r f5f07c0161ee -r ac2ad391d929 libxl_dom.c --- a/libxl_dom.c +++ b/libxl_dom.c @@ -53,7 +53,8 @@ int build_pre(struct libxl_ctx *ctx, uin xc_set_hvm_param(ctx->xch, domid, HVM_PARAM_VPT_ALIGN, (unsigned long) info->vpt_align); xc_domain_max_vcpus(ctx->xch, domid, info->max_vcpus); xc_domain_setmaxmem(ctx->xch, domid, info->max_memkb + info->video_memkb); - xc_domain_set_memmap_limit(ctx->xch, domid, info->max_memkb); + xc_domain_set_memmap_limit(ctx->xch, domid, + (info->hvm) ? info->max_memkb : (info->max_memkb + (8*1024))); if (info->hvm) { unsigned long shadow; --------------070707040204070407030808 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------070707040204070407030808--