From: Dan Magenheimer Subject: Re: [RFC/PATCH] XENMEM_claim_pages (subop of an existing) hypercall Date: Thu, 15 Nov 2012 11:02:44 -0800 (PST) Message-ID: References: <4a60001b-b323-4d62-8e7a-456b0f5e553a@default> <1352976427.3499.100.camel@zakaz.uk.xensource.com> <50A4DEDE02000078000A8D22@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <50A4DEDE02000078000A8D22@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 , Ian Campbell Cc: "Keir (Xen.org)" , "Tim(Xen.org)" , Konrad Wilk , Zhigang Wang , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org > From: Jan Beulich [mailto:JBeulich@suse.com] > Sent: Thursday, November 15, 2012 4:24 AM > To: Ian Campbell; Dan Magenheimer > Cc: xen-devel@lists.xen.org; KonradWilk; Zhigang Wang; Keir (Xen.org); Tim(Xen.org) > Subject: Re: [Xen-devel] [RFC/PATCH] XENMEM_claim_pages (subop of an existing) hypercall > > >>> On 15.11.12 at 11:47, Ian Campbell wrote: > > On Tue, 2012-11-13 at 22:23 +0000, Dan Magenheimer wrote: > >> This is a first cut of the hypervisor patch of the proposed > >> XENMEM_claim_pages hypercall/subop. > > > > Who is expected to be able to call this? I think a XENMEM subop implies > > that the guest itself, plus perhaps any controlling stubdom (e.g. qemu) > > could call > > it, which I don't think is desirable. > > > > Should this be limited to the toolstack only and therefore be a subop of > > domctl or some other hypercall? > > Oh, yes, absolutely. Whether making it a domctl (where it doesn't > belong except for that aspect) I'm not that sure, though. I've added an IS_PRIV(current->domain) check in v3. If this is incorrect or insufficient, please let me know! Thanks, Dan