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 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] Fix balloon handling of highmem pages

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] Fix balloon handling of highmem pages
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Tue, 3 Jul 2007 02:27:26 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <keir@xxxxxxxxxxxxx>, anthony@xxxxxxxxxxxxxxxxx
Delivery-date: Mon, 02 Jul 2007 18:25:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C2ADD5EB.11AC4%Keir.Fraser@xxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C2ADD5EB.11AC4%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6
> Applied, but have you tested with 'mem=' on the domain cmdline to give it a
> memmap bigger than its original allocation of memory? In this case it looks
> like the code in mm/init-xen.c does the right thing in tandem with this
> patch (i.e., it increments totalhigh_pages for each not-currently-present
> page, and you then decrement again when the not-present pages get added to
> the balloon). But I'm not 100% certain and it could do with being tested.

Good point.

I checked through that code, and agreed with your assessment.  Also just 
tested it, my domain booted successfully with mem=4G and was able to expand 
(and shrink again) without exploding or doing anything obviously crazy.

Cheers,
Mark

>  Thanks,
>  Keir
>
> On 29/6/07 16:53, "Mark Williamson" <mark.williamson@xxxxxxxxxxxx> wrote:
> > I knocked up a quick patch to fix the balloon driver's handling of
> > highmem pages.  Should apply cleanly to the Linux dev tree.  I can also
> > submit it for 3.1 if wanted.
> >
> > Without this, LowTotal can go negative (given it's an unsigned integer)
> > and then appears as ~4Gig, which is a bit silly.
> >
> > I beliee this fixes Anthony Wright's bug #733 in Bugzilla
> > (http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=733).  Credit to
> > Anthony for noticing the problem, and figuring out that he was actually
> > seeing an unsigned int going "negative".
> >
> > Cheers,
> > Mark



-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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

<Prev in Thread] Current Thread [Next in Thread>