]> git.proxmox.com Git - qemu.git/commit - net.c
Port -net none and -net nic to QemuOpts
authorMark McLoughlin <markmc@redhat.com>
Tue, 6 Oct 2009 11:17:06 +0000 (12:17 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 6 Oct 2009 19:36:12 +0000 (14:36 -0500)
commitf83c6e10854a4243159040d2972f2b1508d72b78
treee33e87e85e7b3bbb1ad806ec9b0f5654bbb706af
parent8119b33d1810fd0f25b3592690d7e44527451292
Port -net none and -net nic to QemuOpts

We use a table of network types to look up the initialization function
and parameter descriptions in net_client_init().

For now, we use QemuOpts for the 'none' and 'nic' types. Subsequent
patches port the other types too and the special casing is removed.

We're not parsing the full -net option string here as the type has
been stripped from the string, so we do not use qemu_opts_parse()
'firstname' facility. This will also be rectified in subsequent
patches.

No functional changes are introduced by this patch.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net.c