]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Use '-c' for '--cpus', not '--console'
authorPekka Enberg <penberg@kernel.org>
Wed, 11 May 2011 17:57:48 +0000 (20:57 +0300)
committerPekka Enberg <penberg@kernel.org>
Wed, 11 May 2011 17:57:48 +0000 (20:57 +0300)
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 <asias.hejun@gmail.com>
Cc: Avi Kivity <avi@redhat.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Prasad Joshi <prasadjoshi124@gmail.com>
Cc: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/kvm-run.c

index 829b33f7b730d80e8826bc7b8d56aba5d7e32392..9b5176f3f26d64115b0fb20b2b82a58ca1ef83cf 100644 (file)
@@ -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"),