From: Konrad Rzeszutek Wilk Subject: [RFC PATCH 1/3] xl: replace vcpu-set --ignore-host with --ignore-warn Date: Fri, 19 Jul 2013 11:48:56 -0400 Message-ID: <1374248938-11232-2-git-send-email-konrad.wilk@oracle.com> References: <1374248938-11232-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: In-Reply-To: <1374248938-11232-1-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: George.Dunlap@eu.citrix.com, Ian.Campbell@citrix.com, xen-devel@lists.xensource.com, ian.jackson@eu.citrix.com List-Id: xen-devel@lists.xenproject.org When Xen 4.3 was released we had a discussion whether we should allow the vcpu-set command to allow the user to set more than physical CPUs for a guest. The author brought up: - Xend used to do it, - If a user wants to do it, let them do it, - The original author of the change did not realize the side-effect his patch caused this and had no intention of changing it. - The user can already boot a massively overcommitted guest by having a large 'vcpus=' value in the guest config and we allow that. Since we were close to the release we added --ignore-host parameter as a mechanism for a user to still set more vCPUs that the physical machine as a stop-gate. This patch removes said option and adds the --ignore-warn option. By default the user is allowed to set as many vCPUs as they would like. We will print out a warning if the value is higher than the physical CPU count. The --ignore-warn will silence said warning. Furthermore mention this parameter in the man-page and add the 'WARNING' in the printf. Signed-off-by: Konrad Rzeszutek Wilk --- docs/man/xl.pod.1 | 15 ++++++++++++++- tools/libxl/xl_cmdimpl.c | 30 +++++++++++++----------------- tools/libxl/xl_cmdtable.c | 2 +- 3 files changed, 28 insertions(+), 19 deletions(-) diff --git a/docs/man/xl.pod.1 b/docs/man/xl.pod.1 index 5975d7b..e09d330 100644 --- a/docs/man/xl.pod.1 +++ b/docs/man/xl.pod.1 @@ -597,7 +597,7 @@ This command is only available for HVM domains. Moves a domain out of the paused state. This will allow a previously paused domain to now be eligible for scheduling by the Xen hypervisor. -=item B I I +=item B I