All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Vrabel <david.vrabel@citrix.com>
To: David Vrabel <david.vrabel@citrix.com>
Cc: xen-devel@lists.xensource.com, Keir Fraser <keir@xen.org>,
	Rzeszutek Wilk <konrad.wilk@oracle.com>,
	Konrad
Subject: Re: [PATCH] x86: use 'dom0_mem' to limit the number of pages for dom0
Date: Fri, 19 Aug 2011 16:35:36 +0100	[thread overview]
Message-ID: <4E4E82C8.8050306@citrix.com> (raw)
In-Reply-To: <1ec6c392d40f37032b0c.1313431713@qabil>

Keir,

Since Konrad is considering submitting the Linux kernel patch needing
this Xen patch to the 3.0 stable tree, I think this should be a
candidate for Xen 4.1.2.

Thanks.

David

On 15/08/11 19:08, David Vrabel wrote:
> # HG changeset patch
> # User David Vrabel <david.vrabel@citrix.com>
> # Date 1313404957 -3600
> # Node ID 1ec6c392d40f37032b0c845094c7ee6ba69740fd
> # Parent  8d6edc3d26d26931f3732a2008fb4818bc7bab2d
> x86: use 'dom0_mem' to limit the number of pages for dom0
> 
> Use the 'dom0_mem' command line option to set the maximum number of
> pages for dom0.  dom0 can use then use the XENMEM_maximum_reservation
> memory op to automatically find this limit and reduce the size of any
> page tables etc.
> 
> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
> 
> diff -r 8d6edc3d26d2 -r 1ec6c392d40f xen/arch/x86/domain_build.c
> --- a/xen/arch/x86/domain_build.c	Sat Aug 13 10:14:58 2011 +0100
> +++ b/xen/arch/x86/domain_build.c	Mon Aug 15 11:42:37 2011 +0100
> @@ -254,6 +254,8 @@ static unsigned long __init compute_dom0
>      }
>  #endif
>  
> +    d->max_pages = min(max_pages, avail);
> +
>      return nr_pages;
>  }
>  
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel

  parent reply	other threads:[~2011-08-19 15:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-15 18:08 [PATCH] x86: use 'dom0_mem' to limit the number of pages for dom0 David Vrabel
2011-08-16  0:31 ` Konrad Rzeszutek Wilk
2011-08-16 12:29   ` David Vrabel
2011-08-16 12:51     ` Ian Campbell
2011-08-16 13:11       ` David Vrabel
2011-08-19 15:35 ` David Vrabel [this message]
2011-08-23  9:01 ` Jan Beulich
2011-08-23  9:26   ` Keir Fraser
2011-08-23  9:41     ` Jan Beulich
2011-08-23 12:03       ` Keir Fraser
2011-08-23 15:54   ` David Vrabel

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=4E4E82C8.8050306@citrix.com \
    --to=david.vrabel@citrix.com \
    --cc=keir@xen.org \
    --cc=konrad.wilk@oracle.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.