From: Dan Magenheimer Subject: Re: [RFC/PATCH] XENMEM_claim_pages (subop of an existing) hypercall Date: Wed, 14 Nov 2012 10:33:46 -0800 (PST) Message-ID: <9e2b4f29-124e-4feb-9712-f0a931224e98@default> References: <4a60001b-b323-4d62-8e7a-456b0f5e553a@default> <50A3817D02000078000A8710@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <50A3817D02000078000A8710@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Keir Fraser , TimDeegan , Konrad Wilk , Zhigang Wang , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org > From: Jan Beulich [mailto:JBeulich@suse.com] > Subject: Re: [RFC/PATCH] XENMEM_claim_pages (subop of an existing) hypercall Hi Jan -- Excellent feedback, thanks. You probably saved me hours of debugging... always nice to have another pair of eyes to catch stupid mistakes that I could start at for a long time without noticing the insanity. :-) I'll start working on v2 incorporating your suggestions (and get some runtime testing completed). One thing: > Finally, assuming we really want/need this, shouldn't there be > a way for claims to expire (e.g. in case of tool stack problems), > so they don't indefinitely prevent (perhaps large) portions of > memory to be used for other purpose (e.g. when a domain can't > get fully cleaned up)? I was envisioning (and thanks for catching that I had neglected it in the patch) that the reset_claim call would be done very early in the domain death sequence. But maybe that's a good reason to add back in the "manual" unclaim hypercall/subop, so a toolstack can force the claim to zero. I realized I can easily add that by allowing an existing claim to be "overridden" by a claim of zero pages, so another subop isn't even needed. Dan .