From: Ewan Mellor Subject: Re: unstable: no ballooning Date: Sat, 15 Oct 2005 10:26:34 +0100 Message-ID: <20051015092634.GA25714@leeni.uk.xensource.com> References: <20051010104639.GA18307@tpkurt.garloff.de> <20051012130612.GE20479@uk.xensource.com> <20051014084017.GB12972@tpkurt.wlan.uni-hamburg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20051014084017.GB12972@tpkurt.wlan.uni-hamburg.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Kurt Garloff , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Fri, Oct 14, 2005 at 10:40:17AM +0200, Kurt Garloff wrote: > > The idea is that the memory/target value gets written by Xend, and and the > > balloon driver holds a watch on that value in the store. When the watch > > fires, the balloon driver should respond by setting the new target > > (drivers/xen/balloon/balloon.c:watch_target). > > The kernel watches data from a userspace file? > So the kernel understands the tdb/xenstore format? > I wonder whether that's the cleanest way to implement this feature. It's not a userspace file, as such, but a daemon running in domain 0. The daemon isolates domains from the tdb format, exposing a filesystem-style heirarchical namespace, and maintaining transaction semantics, firing callbacks when portions of the namespace change, and maintaining an implicit root for each connection. It is not necessary for drivers such as the balloon driver to understand the exact layout of the store, but they do need to know how to contact the store and the path from the domain's implicit root to the details in which they are interested. All changes in domain configuration and state are handled in this way. Ewan.