From: "Jan Beulich" Subject: Re: Proposed new "memory capacity claim" hypercall/feature Date: Fri, 09 Nov 2012 08:47:57 +0000 Message-ID: <509CD14D02000078000A76C7@nat28.tlf.novell.com> References: <509B8DC102000078000A72BA@nat28.tlf.novell.com> <509BC65402000078000A73A4@nat28.tlf.novell.com> <563639fd-fc13-49cd-88cf-431244534c2f@default> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <563639fd-fc13-49cd-88cf-431244534c2f@default> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dan Magenheimer Cc: TimDeegan , Olaf Hering , Keir Fraser , IanCampbell , Konrad Wilk , George Dunlap , Ian Jackson , George Shuklin , xen-devel@lists.xen.org, DarioFaggioli , Kurt Hackel , Zhigang Wang List-Id: xen-devel@lists.xenproject.org >>> On 08.11.12 at 20:16, Dan Magenheimer wrote: >> From: Jan Beulich [mailto:JBeulich@suse.com] >> >>> On 08.11.12 at 11:50, Keir Fraser wrote: >> > On 08/11/2012 09:47, "Jan Beulich" wrote: >> >> The only thing that indeed is - on non-preemptible kernels - done >> >> only on exit to user mode is the eventual entering of the scheduler. >> > >> > That alone may still be an argument for restricting the batch size from the >> > toolstack? >> >> Yes, this clearly prohibits unlimited batches. But not being able to >> schedule should be less restrictive than not being able to run >> softirqs, so I'd still put under question whether the limit shouldn't >> be bumped. > > Wait, please define unlimited. Unlimited as in unlimited. > I think we are in agreement from previous discussion that, to solve > the TOCTOU race, the heap_lock must be held for the entire allocation > for a domain creation. True? That's only one way (and as Keir already responded, not one that we should actually pursue). The point about being fast enough was rather made to allow a decision towards the feasibility of intermediately disabling tmem (or at least allocations originating from it) in particular (I'm not worried about micro-allocations - the tool stack has to provide some slack in its calculations for this anyway). Jan