WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

RE: [Xen-devel] More on 2.6.28 and balloon driver

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>, "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] More on 2.6.28 and balloon driver
From: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Date: Wed, 7 Jan 2009 19:45:00 +0000 (GMT)
Cc:
Delivery-date: 2009年1月07日 11:45:52 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <b90604f9-772a-49fc-9092-fc727408aca0@default >
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
> 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.
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@xxxxxxxxxx>
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. */

Attachment: balloon.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: Re: [Xen-devel] 2.6.28 64-bit domU not booting , Valtteri Kiviniemi
Next by Date: Re: [Xen-devel] 2.6.28 64-bit domU not booting , Pasi Kärkkäinen
Previous by Thread: RE: [Xen-devel] More on 2.6.28 and balloon driver , Dan Magenheimer
Next by Thread: Re: [Xen-devel] More on 2.6.28 and balloon driver , Jeremy Fitzhardinge
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /