Skip to content

Add a -netdev option

Mark McLoughlin qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16slirp: fix !CONFIG_SLIRP compilationnet.c+4 -10 replies
2/16hotplug: safely iterate bus's sibling list while removing a devicehw/acpi.c+2 -22 replies
3/16net: pass monitor handle to client init functionsnet.c+1 -10 replies
4/16net: remove unused qemu_handler_true()net.h+0 -10 replies
5/16net: handle id= parameter for -netnet.c+20 -280 replies
6/16net: remove id field from NICInfohw/pci.c net.c net.h+2 -70 replies
7/16net: use qtailq for vlan and client listsnet.c net.h savevm.c+62 -620 replies
8/16net: allow clients not associated with a vlannet.c+23 -70 replies
9/16net: add QemuOptsList arg to net_client_parse()net.c net.h vl.c+6 -50 replies
10/16net: add -netdev optionqemu-config.c qemu-config.h qemu-options.hx +1 more+29 -00 replies
11/16net: handle -netdevice optionshw/pci-hotplug.c net.c net.h +1 more+95 -390 replies
12/16net: maintain a list of vlan-less clientsnet.c+11 -20 replies
13/16net: add -net nic,netdev= optionnet.c net.h+37 -50 replies
14/16net: allow NICs to be connected to netdevshw/dp8393x.c hw/etraxfs_eth.c hw/mcf_fec.c +7 more+45 -200 replies
15/16net: refactor packet queueing codeMakefile net-queue.c net-queue.h +3 more+342 -1320 replies
16/16net: add queue for peer-to-peer packet forwardingnet.c net.h+99 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/16] Add a -netdev option

Hi,
Here's a series of patches which gets the ball rolling on adding
a -netdev option.

The idea is to de-emphasise the vlan support, and instead make
a nic directly connected to a host backend the default and recommended configuration. We want this because it is only with this configuration that we feasibly add optimizations like GSO support or vhost-net.

Where we're going is that rather '-net user -net nic' being the
default, it would instead be:

-netdev user,id=default_slirp -device e1000,netdev=default_slirp

This patch series has a lot of this done, but there's still a
significant TODO list including:

* qdev-ify the NICs so that we can use -device rather than '-net nic' which Gerd has started looking at

* add hotplug equivalent to netdev - we should probably add a 'nic=' argument to -netdev for this to allow changing the backend without changing the frontend

* 'info network' should list netdevs

* merging in GSO support from qemu-kvm.git, substantially cleaned up

* VLAN support should be implemented as just another network client, but one which is connected to multiple backends and frontends

* re-naming e.g. VLANClientState to NetClient

* killing off NICInfo

* ...

I've given this series significant testing including building
with all targets (really!), mingw, --disable-slirp, --enable-vde, without TUNSETSNDBUF and running with various nic models, backends, with both -net and -netdev, some different guests, hotplug, ... No doubt I've still managed to screw something up.

Cheers,
Mark.