diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-10-21 15:25:42 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-27 12:28:41 -0500 |
commit | 9ad4531e1e00b996ba55de04d6ecfb4d02a9fd7c (patch) | |
tree | ba077d0f67589e920591e9f269d10a1f450050fe /hw/pci-hotplug.c | |
parent | 1cc33683c8952c62343e06cceffba5c7990e3b7b (diff) | |
download | qemu-9ad4531e1e00b996ba55de04d6ecfb4d02a9fd7c.zip qemu-9ad4531e1e00b996ba55de04d6ecfb4d02a9fd7c.tar.gz qemu-9ad4531e1e00b996ba55de04d6ecfb4d02a9fd7c.tar.bz2 |
kill dead nic unplug code.
Cleanup on unplug happens via qdev->exit() callback now.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/pci-hotplug.c')
-rw-r--r-- | hw/pci-hotplug.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/hw/pci-hotplug.c b/hw/pci-hotplug.c index 35fa290..4673b89 100644 --- a/hw/pci-hotplug.c +++ b/hw/pci-hotplug.c @@ -234,28 +234,3 @@ void do_pci_device_hot_remove(Monitor *mon, const QDict *qdict) { pci_device_hot_remove(mon, qdict_get_str(qdict, "pci_addr")); } - -static int pci_match_fn(void *dev_private, void *arg) -{ - PCIDevice *dev = dev_private; - PCIDevice *match = arg; - - return (dev == match); -} - -/* - * OS has executed _EJ0 method, we now can remove the device - */ -void pci_device_hot_remove_success(PCIDevice *d) -{ - int class_code; - - class_code = d->config_read(d, PCI_CLASS_DEVICE+1, 1); - - switch(class_code) { - case PCI_BASE_CLASS_NETWORK: - destroy_nic(pci_match_fn, d); - break; - } -} - |