From: Wei Liu Subject: Re: [PATCH v2 5/8] tmem: Move TMEM_CONTROL subop of tmem hypercall to sysctl. Date: Thu, 27 Aug 2015 12:22:42 +0100 Message-ID: <20150827112242.GH22586@zion.uk.xensource.com> References: <1440673323-6648-1-git-send-email-konrad.wilk@oracle.com> <1440673323-6648-6-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZUvGY-00061t-Fe for xen-devel@lists.xenproject.org; Thu, 27 Aug 2015 11:22:46 +0000 Content-Disposition: inline In-Reply-To: <1440673323-6648-6-git-send-email-konrad.wilk@oracle.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: Konrad Rzeszutek Wilk Cc: xen-devel@lists.xenproject.org, wei.liu2@citrix.com, jbeulich@suse.com, andrew.cooper3@citrix.com List-Id: xen-devel@lists.xenproject.org On Thu, Aug 27, 2015 at 07:02:00AM -0400, Konrad Rzeszutek Wilk wrote: > The operations are to be used by an control domain to set parameters, > list pools, clients, and to be used during migration. > > There is no need to have them in the tmem hypercall path. > > This patch moves code without adding fixes - and in fact in > some cases makes the parameters soo long that they hurt eyes - but > that is for another patch. > > Note that in regards to existing users: > > - Only the control domain could call it - which meant that if > a guest called it would get -EPERM, so we are OK there. > In practice no guests called this TMEM_CONTROL command. > > - The spec: https://oss.oracle.com/projects/tmem/dist/documentation/api/tmemspec-v001.pdf > mentions: "TBD [Not sure if this is really needed.]" > which is a carte blanche as any to do this! > > Note: The XSM check is the same - we just move it from do_tmem_op > to do_sysctl. > Signed-off-by: Konrad Rzeszutek Wilk Toolstack changes look mechanical: Acked-by: Wei Liu