From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: xen-devel@lists.xensource.com
Cc: gianluca.guida@citrix.com, Konrad Rzeszutek Wilk <kliw@darnok.org>
Subject: Re: [PATCH] Include in balloon page tracking only PFNs which are marked as RAM in E820.
Date: Wed, 19 Aug 2009 15:16:07 -0400 [thread overview]
Message-ID: <20090819191607.GA4798@phenom.dumpdata.com> (raw)
In-Reply-To: <1250709149-4730-2-git-send-email-konrad.wilk@oracle.com>
Gianluca,
I had not done any extensive testing. Would appreciate your feedback on this patch.
On Wed, Aug 19, 2009 at 03:12:29PM -0400, Konrad Rzeszutek Wilk wrote:
> From: Konrad Rzeszutek Wilk <kliw@darnok.org>
>
> Signed-off-by: Konrad Rzeszutek Wilk <kliw@darnok.org>
> ---
> drivers/xen/balloon.c | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c
> index 168e61f..ef2edd8 100644
> --- a/drivers/xen/balloon.c
> +++ b/drivers/xen/balloon.c
> @@ -416,8 +416,12 @@ static int __init balloon_init(void)
>
> /* Initialise the balloon with excess memory space. */
> for (pfn = xen_start_info->nr_pages; pfn < max_pfn; pfn++) {
> - page = pfn_to_page(pfn);
> - balloon_append(page);
> + int is_ram = page_is_ram(pfn);
> + if (is_ram) {
> + page = pfn_to_page(pfn);
> + if (PageReserved(page))
> + balloon_append(page);
> + }
> }
>
> target_watch.callback = watch_target;
> --
> 1.6.2.5
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2009-08-19 19:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-19 19:12 [PATCH XEN-UNSTABLE PV_OPS] Balloon fix Konrad Rzeszutek Wilk
2009-08-19 19:12 ` [PATCH] Include in balloon page tracking only PFNs which are marked as RAM in E820 Konrad Rzeszutek Wilk
2009-08-19 19:16 ` Konrad Rzeszutek Wilk [this message]
2009-08-20 16:02 ` Gianluca Guida
2009-08-20 16:43 ` Konrad Rzeszutek Wilk
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=20090819191607.GA4798@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=gianluca.guida@citrix.com \
--cc=kliw@darnok.org \
--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.