aboutsummaryrefslogtreecommitdiff
path: root/qemu.nsi
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2018-02-21 11:18:36 +0100
committerJason Wang <jasowang@redhat.com>2018-03-05 10:30:16 +0800
commit78cd6f7bf6b196a96388a37e730706cf0c497fda (patch)
tree63e7f18c6e600323ac0689ddc68a3804e5b215e4 /qemu.nsi
parent7cc28cb061040cb089d29de2d9a73f404b94bc66 (diff)
downloadqemu-78cd6f7bf6b196a96388a37e730706cf0c497fda.zip
qemu-78cd6f7bf6b196a96388a37e730706cf0c497fda.tar.gz
qemu-78cd6f7bf6b196a96388a37e730706cf0c497fda.tar.bz2
net: Add a new convenience option "--nic" to configure default/on-board NICs
The legacy "-net" option can be quite confusing for the users since most people do not expect to get a "vlan" hub between their emulated guest hardware and the host backend. But so far, we are also not able to get rid of "-net" completely, since it is the only way to configure on-board NICs that can not be instantiated via "-device" yet. It's also a little bit shorter to type "-net nic -net tap" instead of "-device xyz,netdev=n1 -netdev tap,id=n1". So what we need is a new convenience option that is shorter to type than the full -device + -netdev stuff, and which can be used to configure the on-board NICs that can not be handled via -device yet. Thus this patch now provides such a new option "--nic": It adds an entry in the nd_table to configure a on-board / default NIC, creates a host backend and connects the two directly, without a confusing "vlan" hub inbetween. Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'qemu.nsi')
0 files changed, 0 insertions, 0 deletions