From: Konrad Rzeszutek Wilk Subject: [PATCH v2] Fix xl vcpu-set to decrease amount of vCPUS without warnining. Date: Fri, 13 Mar 2015 16:26:38 -0400 Message-ID: <1426278403-12959-1-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.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YWWAc-00031F-Bt for xen-devel@lists.xenproject.org; Fri, 13 Mar 2015 20:26:58 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org, ian.jackson@eu.citrix.com, stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com, wei.liu2@citrix.com List-Id: xen-devel@lists.xenproject.org Hey, This patchset had been floating in the past. The aim for is to allow the user to do 'xl vcpu-set X' where the X can be bigger than the amount of physical CPUs the machine has. You can do this by launching an guest with huge amount of virtual CPUs without issues. >From (http://lists.xenproject.org/archives/html/xen-devel/2015-02/msg00216.html): " Let me rehash what we had in set in stone way back in 4.4: - The guest config ('maxvcpus') is permitted to be greater than the pCPUs. Ditto for the initially allocated ('vcpus') amounts. It is also OK to be different - 'vcpus' < 'maxvcpus', etc. - If the 'vcpus' < pCPUs and we want to increase it above pCPUs we should error out and print out a warning telling them to use --ignore-host. Regardless of the dominfo.max_vcpu_id - so if the max_vpcu_id is greater than pCPU and 'vcpu' < pCPU, we should still warn the user when increasing. - If the 'vcpus' > pCPUs and we want to decrease to be below pCPUs then we should do that without the warning. (this is what the patchset is fixing). " However during the fixes an request was made to have libxl_domain_info return a more proper return value when there are no domains found - hence: [PATCH v2 1/5] libxl: Add ERROR_NOTFOUND for libxl_domain_info when is part of this patchset. tools/libxl/libxl.c | 18 +++++++++------ tools/libxl/libxl.h | 4 +++- tools/libxl/libxl_types.idl | 1 + tools/libxl/xl_cmdimpl.c | 55 +++++++++++++++++++++++++++++---------------- 4 files changed, 51 insertions(+), 27 deletions(-)