kvm: qemu: return PCIDevice on net device init and record devfn
commit4b663458cf137f81365ad63fedf32b66328e58a1
authorMarcelo Tosatti <mtosatti@redhat.com>
Tue, 11 Mar 2008 20:11:55 +0000 (11 17:11 -0300)
committerAvi Kivity <avi@qumranet.com>
Sun, 16 Mar 2008 12:03:29 +0000 (16 14:03 +0200)
treefa7f90a747401c4ef484d44c6cdf2a7b70ef3513
parentc10bf6159ff24501852c91a342c3077d5388b184
kvm: qemu: return PCIDevice on net device init and record devfn

Change the PCI network drivers init functions to return the PCIDev, to
inform which slot has been hot-plugged.

Also record devfn on the NICInfo structure to locate for release
on hot-removal.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
qemu/hw/e1000.c
qemu/hw/eepro100.c
qemu/hw/ne2000.c
qemu/hw/pc.h
qemu/hw/pci.c
qemu/hw/pci.h
qemu/hw/pcnet.c
qemu/hw/rtl8139.c
qemu/hw/virtio-net.c
qemu/net.h