]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Support multiple net devices
authorSasha Levin <levinsasha928@gmail.com>
Wed, 28 Sep 2011 05:45:55 +0000 (08:45 +0300)
committerPekka Enberg <penberg@kernel.org>
Wed, 28 Sep 2011 14:13:48 +0000 (17:13 +0300)
commitd7bf467834f789ad0530286faef793e531bd71eb
treed746f76346a42f4ebfd7542b0d1aa09b4cab7b6f
parent5779c0f49a2c9fe482cb061adf77c4b05f7418cd
kvm tools: Support multiple net devices

This patch adds support for multiple network devices. The command line syntax
changes to the following:

--network/-n [mode=tap/user/none][,guest_ip=ip][,host_ip=
ip][,guest_mac=mac][,script=file]

Each of the parameters is optional, and the config defaults to a TAP based
networking with a sequential MAC.

Acked-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/builtin-run.c
tools/kvm/include/kvm/virtio-net.h
tools/kvm/virtio/net.c