All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andres Lagar-Cavilla <andres@lagarcavilla.com>
To: Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>,
	Vincent Hanquez <vincent.hanquez@eu.citrix.com>,
	xen-devel@lists.xensource.com
Subject: [PATCH 3/7] libxenlight resend: 8mb physmap slack for pv domains
Date: Wed, 02 Dec 2009 13:00:31 -0500	[thread overview]
Message-ID: <4B16AB3F.4000809@lagarcavilla.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 378 bytes --]

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 <andres@lagarcavilla.com>


[-- Attachment #2: 03_8mb_pv_mem_slack.patch --]
[-- Type: text/plain, Size: 1212 bytes --]

# HG changeset patch
# User Andres Lagar-Cavilla <andres@lagarcavilla.com>
# 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 <andres@lagarcavilla.com> 

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;

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

             reply	other threads:[~2009-12-02 18:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-02 18:00 Andres Lagar-Cavilla [this message]
2009-12-03 12:34 ` [PATCH 3/7] libxenlight resend: 8mb physmap slack for pv domains Stefano Stabellini
2009-12-03 16:10 ` Vincent Hanquez
2009-12-03 16:03   ` Andres Lagar-Cavilla
2009-12-03 16:50     ` Vincent Hanquez
2009-12-03 16:49       ` Andres Lagar-Cavilla
2009-12-03 17:05 ` [PATCH 3/7] libxenlight meta-resend: " Andres Lagar-Cavilla
2009-12-04  7:12   ` Keir Fraser
  -- strict thread matches above, loose matches on Subject: below --
2009-12-03 15:55 [PATCH 3/7] libxenlight resend: 8mb " andres

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B16AB3F.4000809@lagarcavilla.com \
    --to=andres@lagarcavilla.com \
    --cc=Stefano.Stabellini@eu.citrix.com \
    --cc=vincent.hanquez@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.