From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: "Xen-Devel (E-mail)" <xen-devel@lists.xensource.com>
Subject: Re: More on 2.6.28 and balloon driver
Date: Fri, 16 Jan 2009 10:08:16 -0800 [thread overview]
Message-ID: <4970CD10.6050707@goop.org> (raw)
In-Reply-To: <bb26e7bc-9a59-4823-97ff-d81dc214160d@default>
Dan Magenheimer wrote:
>> It appears that in the upstream balloon driver,
>> the call to HYPERVISOR_update_va_mapping is missing
>> from decrease_reservation. I think as a result,
>> the balloon driver is eating memory but not
>> releasing it to Xen, thus rendering the balloon
>> driver essentially useless. (Can be observed via xentop.)
>>
>
> Limited testing, but it appears that adding it
> back in with this simple patch to linux-2.6.28
> makes ballooning work properly.
>
Thanks. That's a pretty embarrassing oversight :/
> As the code is lifted from the original Xen balloon driver,
> I'm not sure I need this, but:
>
> Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
>
Yeah, the S-o-b line is a way to keep track of who a patch went via.
It's "I assert that I'm allowed to post this patch". In theory you'd
include the previous S-o-b lines (if any), but a reference to the source
repo/version would be enough in this case.
J
> Dan
>
> P.S. Attachement is same, provided in case my mailer
> messes up this >80-char-width patch.
>
>
> --- linux-2.6.28/drivers/xen/balloon.c.orig 2009-01-07 12:35:48.000000000 -0700
> +++ linux-2.6.28/drivers/xen/balloon.c 2009-01-07 12:36:06.000000000 -0700
> @@ -296,6 +296,11 @@
> frame_list[i] = pfn_to_mfn(pfn);
>
> scrub_page(page);
> +
> + ret = HYPERVISOR_update_va_mapping(
> + (unsigned long)__va(pfn << PAGE_SHIFT),
> + __pte_ma(0), 0);
> + BUG_ON(ret);
> }
>
> /* Ensure that ballooned highmem pages don't have kmaps. */
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
next prev parent reply other threads:[~2009-01-16 18:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 23:34 2.6.28 and balloon driver Dan Magenheimer
2009-01-07 0:53 ` More on " Dan Magenheimer
2009-01-07 17:40 ` Dan Magenheimer
2009-01-07 19:45 ` Dan Magenheimer
2009-01-16 18:08 ` Jeremy Fitzhardinge [this message]
2009-01-07 10:05 ` Ian Campbell
2009-01-07 11:41 ` Ian Jackson
2009-01-07 18:00 ` Dan Magenheimer
2009-01-07 19:11 ` Trolle Selander
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=4970CD10.6050707@goop.org \
--to=jeremy@goop.org \
--cc=dan.magenheimer@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.