]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Tune the command-line option
authorAsias He <asias.hejun@gmail.com>
Fri, 13 May 2011 02:40:09 +0000 (10:40 +0800)
committerPekka Enberg <penberg@kernel.org>
Sat, 14 May 2011 11:53:35 +0000 (14:53 +0300)
commit8da7d556d30bf6d838fb222dd217f7b8c811db56
tree155786604f37e4765194aa048325a03ff7e54378
parent29a8238883f75526ea9661badb9cd52971652682
kvm tools: Tune the command-line option

With this patch we can have
-c --cpus
-m --mem
-d --disk
-k --kernel
-i --initrd
which is more consistent and easy to remember.

The patch also frees up -s, -g option.

Ingo suggestied
'''
 The debug options should probably be concentrated under a --debug option
 anyway, to allow things like:

  --debug single-step,ioport

 Even if the debug options are kept they should be streamlined along
 the same
 pattern:

 >>         --debug-single-step     Enable single stepping
 >>         --debug-ioport          Enable ioport debugging

 But having a --debug option that recognizes all the debug flags would
 be nicer.

 It would also allow future enhancements to group debug features, like:

   --debug all                # turn on everything and the kitchen sink
   for early hangs
   --debug all,-single-step   # turn on everything except single-step
   debugging
   --debug nonverbose         # turn on all non-noisy debug options we
   have

 Maybe even:

   --debug memcheck

 ... could run kvm under valgrind automatically - that way we can hide
 any secondary tool complexities from the user and turn those tools into
 simple debug options :-)
'''

Let's do this --debug option consolidation later.

Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/kvm-run.c