From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pekka Enberg Subject: [PATCH 1/2] kvm tools: Use '-c' for '--cpus', not '--console' Date: Wed, 11 May 2011 21:01:45 +0300 Message-ID: <1305136906-14496-1-git-send-email-penberg@kernel.org> Cc: Pekka Enberg , Asias He , Avi Kivity , Cyrill Gorcunov , Ingo Molnar , Prasad Joshi , Sasha Levin To: kvm@vger.kernel.org Return-path: Received: from filtteri1.pp.htv.fi ([213.243.153.184]:56957 "EHLO filtteri1.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754076Ab1EKSBt (ORCPT ); Wed, 11 May 2011 14:01:49 -0400 Sender: kvm-owner@vger.kernel.org List-ID: This patch changes the '-c' command line option to specify the number of CPUs because it's used more often than console switching. Cc: Asias He Cc: Avi Kivity Cc: Cyrill Gorcunov Cc: Ingo Molnar Cc: Prasad Joshi Cc: Sasha Levin Signed-off-by: Pekka Enberg --- tools/kvm/kvm-run.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/kvm/kvm-run.c b/tools/kvm/kvm-run.c index 829b33f..9b5176f 100644 --- a/tools/kvm/kvm-run.c +++ b/tools/kvm/kvm-run.c @@ -97,10 +97,10 @@ static int img_name_parser(const struct option *opt, const char *arg, int unset) static const struct option options[] = { OPT_GROUP("Basic options:"), - OPT_INTEGER('\0', "cpus", &nrcpus, "Number of CPUs"), + OPT_INTEGER('c', "cpus", &nrcpus, "Number of CPUs"), OPT_U64('m', "mem", &ram_size, "Virtual machine memory size in MiB."), OPT_CALLBACK('i', "image", NULL, "image", "Disk image", img_name_parser), - OPT_STRING('c', "console", &console, "serial or virtio", + OPT_STRING('\0', "console", &console, "serial or virtio", "Console to use"), OPT_BOOLEAN('\0', "virtio-rng", &virtio_rng, "Enable virtio Random Number Generator"), -- 1.7.0.4