]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Check for unknown parameters in network option handling
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 10 Aug 2012 05:38:52 +0000 (15:38 +1000)
committerPekka Enberg <penberg@kernel.org>
Mon, 13 Aug 2012 07:29:09 +0000 (10:29 +0300)
commitfa7449fb76d8ec985a5847609c0dd3b5d754607b
tree4ce4c8501ca3c66c544b4cf511e876e554892438
parent5d021d04bf93e2b8b04ab7f5ec53e9164958a2fe
kvm tools: Check for unknown parameters in network option handling

Currently the parsing of network command line parameters doesn't check
for unknown parameters.

For example "-n mod=none" will cause kvmtool to setup TAP networking.

Save users from their typos by checking for unknown parameters and bailing.

Acked-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/builtin-run.c