summaryrefslogtreecommitdiffstats
path: root/hw/pci-hotplug.c
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-10-08 19:58:27 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-15 09:32:01 -0500
commitf6b134ac30cc61ebf995537d99ec312d8ba74996 (patch)
treedd0ef5a91c79c68372bc50ed34ad663b36fac1a6 /hw/pci-hotplug.c
parenta1ea458fdf4711b5d3b23e987b47366d6a3b5924 (diff)
downloadhqemu-f6b134ac30cc61ebf995537d99ec312d8ba74996.zip
hqemu-f6b134ac30cc61ebf995537d99ec312d8ba74996.tar.gz
net: handle -netdevice options
Same as for -net except for: - only tap, user, vde and socket types are supported - the vlan parameter is not allowed - the name parameter is not allowed but the id parameter is required Patchworks-ID: 35517 Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pci-hotplug.c')
-rw-r--r--hw/pci-hotplug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c
index 08b5826..35fa290 100644
--- a/hw/pci-hotplug.c
+++ b/hw/pci-hotplug.c
@@ -51,7 +51,7 @@ static PCIDevice *qemu_pci_hot_add_nic(Monitor *mon,
qemu_opt_set(opts, "type", "nic");
- ret = net_client_init(mon, opts);
+ ret = net_client_init(mon, opts, 0);
if (ret < 0)
return NULL;
if (nd_table[ret].devaddr) {
OpenPOWER on IntegriCloud