From: Ian Campbell Subject: Re: libxl/xl memory paging/sharing/ballooning/etc proposal. Date: Thu, 15 Mar 2012 14:47:34 +0000 Message-ID: <1331822854.26979.110.camel@zakaz.uk.xensource.com> References: <1331805673.26979.59.camel@zakaz.uk.xensource.com> <1ea7d063267dc01aa8a0c669ec229f8f.squirrel@webmail.lagarcavilla.org> <1331822157.26979.107.camel@zakaz.uk.xensource.com> <68f1ac83eb7d8a0a2923d12f7e01bc01.squirrel@webmail.lagarcavilla.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <68f1ac83eb7d8a0a2923d12f7e01bc01.squirrel@webmail.lagarcavilla.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "andres@lagarcavilla.org" Cc: George Dunlap , Olaf Hering , Ian Jackson , xen-devel List-Id: xen-devel@lists.xenproject.org On Thu, 2012-03-15 at 14:40 +0000, Andres Lagar-Cavilla wrote: > > On Thu, 2012-03-15 at 14:12 +0000, Andres Lagar-Cavilla wrote: > > [...] > >> > >> > libxl_domain_(enable|disable)_sharing(ctx, domid) > >> > > >> > Does what it says on the tin. > > > > Also long running? > > Enable is simply setting a flag. Disable is not a problem either: the > hypervisor will silently take care of unshares. > > However, if there is an ENOMEM in an unshare, someone has to be listening > or the domain will crash. It could be that the xl daemon is tasked with > this for the lifetime of the domain, once sharing has been enabled at > least once. I don't think it's something to decide upon right now. xl has explicitly decided not to care about sharing so this would be the problem of whichever actor does do sharing... Given the assumption that a sharing-actor would have to be system wide perhaps we don't need these libxl functions to start stop it (since it will be running already) and the very act (no pun intended) of setting actor="blah-sharing" should be enough to enable or disable sharing for a particular guest? Ian.