]> git.proxmox.com Git - mirror_qemu.git/commit
hw/pci: switch to a generic hotplug handling for PCIDevice
authorIgor Mammedov <imammedo@redhat.com>
Wed, 5 Feb 2014 15:36:52 +0000 (16:36 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Feb 2014 08:27:00 +0000 (10:27 +0200)
commit5e95494380ecf83c97d28f72134ab45e0cace8f9
tree20d5e5a53d96ea810ffdc2f828aa4c26f60c3f9e
parenta66e657e18cd9b70e9f57ae5512c07faf2bc508f
hw/pci: switch to a generic hotplug handling for PCIDevice

make qdev_unplug()/device_set_realized() to call hotplug handler's
plug/unplug methods if available and remove not needed anymore
hot(un)plug handling from PCIDevice.

In case if hotplug handler is not available, revert to the legacy
hotplug method for compatibility with not yet converted buses.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/core/qdev.c
hw/pci/pci.c
include/hw/pci/pci.h
include/hw/pci/pci_bus.h
tests/Makefile