Support addr=... in option argument of -net nic
commit5607c38820366954c38dd702e979499486057481
authorMarkus Armbruster <armbru@redhat.com>
Thu, 18 Jun 2009 13:14:08 +0000 (18 15:14 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Jun 2009 15:15:29 +0000 (22 10:15 -0500)
tree9d7f6624fc7b24c6eb887d4b634f57cb6f2b33f1
parent07b7d05377a5e2b242ef0cce3d461d3284700fc0
Support addr=... in option argument of -net nic

Make net_client_init() accept addr=, put the value into struct
NICinfo.  Use it in pci_nic_init(), and remove arguments bus and
devfn.

Don't support addr= in third argument of monitor command pci_add,
because that clashes with its first argument.  Admittedly unelegant.

Machines "malta" and "r2d" have a default NIC with a well-known PCI
address.  Deal with that the same way as the NIC model: make
pci_nic_init() take an optional default to be used when the user
doesn't specify one.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
16 files changed:
hw/mips_malta.c
hw/pc.c
hw/pci-hotplug.c
hw/pci.c
hw/pci.h
hw/ppc440_bamboo.c
hw/ppc_newworld.c
hw/ppc_oldworld.c
hw/ppc_prep.c
hw/ppce500_mpc8544ds.c
hw/r2d.c
hw/realview.c
hw/versatilepb.c
net.c
net.h
qemu-options.hx