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-users

Re: [Xen-users] Balloon Driver Documentation/Description

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Balloon Driver Documentation/Description
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Mon, 9 Oct 2006 18:08:35 +0100
Cc: Timo Benk <benk@xxxxxxxxxxxxx>
Delivery-date: Mon, 09 Oct 2006 10:09:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4527F31C.4080609@xxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4527F31C.4080609@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.1
> i'm looking for some documentation on how the balloon driver works
> internally.
>
> Can anybody give me a hint were i can find some good doku?

Some of the papers on Xen (see "Xen and the art of virtualisation", for 
instance) describe this, but not in much detail.  The idea actually came from 
VMware's ESX server product originally.

> I searched wiki.xensource.com and google but was not very successfull.

The code is also good documentation, if a little hard to follow before you 
know what it does.

Basically, the balloon driver allocates memory using standard kernel 
allocation functions, then gives it back to Xen.  The memory is no longer 
available to use in the guest at this point, and the fact that it was 
allocated by the balloon driver prevents the rest of the kernel from trying 
to use it.

When the balloon driver reclaims memory, it gets it back from Xen and then 
does a "free", allowing the kernel memory allocator to give it to other 
drivers for normal use.

The balloon driver contains a load of book keeping regarding these operations, 
certain mechanics to actually make the whole thing work properly, and a few 
other memory operations that are used by Xen drivers.

HTH some,
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-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users