From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: xl cpu online/offline? Date: Wed, 13 Jan 2016 15:15:20 +0000 Message-ID: <56966A08.30006@citrix.com> References: <20160113145359.GA23951@char.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aJN9C-0002HY-A4 for xen-devel@lists.xenproject.org; Wed, 13 Jan 2016 15:15:42 +0000 In-Reply-To: <20160113145359.GA23951@char.us.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 , xen-devel@lists.xenproject.org, xudong.hao@intel.com, ian.campbell@citrix.com, wei.liu2@citrix.com List-Id: xen-devel@lists.xenproject.org On 13/01/16 14:53, Konrad Rzeszutek Wilk wrote: > Hey, > > We have some libxc calls for onlining/offlining the CPU and they > are quite good for testing how well Xen behaves without say > doing an S3 suspend or such. > > It occurred to me that it would be nice to have them hook up in > libxl/xl but I am not exactly sure what the right command line would be? > > And whether you want to make it super-duper smart to be able to deal > with ranges or hex masks, etc (like xentrace does). > > Anyhow my first thought was: > > xl cpu online/offline > > but most of the commands seem to follow one command per action, so perhaps: > > xl cpu-online > xl cpu-offline > > ? Merging the xen-hptool functionality into xl would be a good improvement. It uses: andrewcoop@andrewcoop:~$ ssh idol xen-hptool xen-hptool: Xen CPU/memory hotplug tool Usage: xen-hptool [args] Commands: help display this help cpu-online online CPU cpu-offline offline CPU mem-online online MEMORY mem-offline offline MEMORY mem-status query Memory status ~Andrew