acpi/piix4pm: convert ACPI PCI hotplug to use hotplug-handler API
Split piix4_device_hotplug() into hotplug/unplug callbacksand register them as "hotplug-handler" interface implementation ofPIIX4_PM device.
Replace pci_bus_hotplug() wiring with setting link on...
pci/shpc: convert SHPC hotplug to use hotplug-handler API
Split shpc_device_hotplug() into hotplug/unplug callbacksand register them as "hotplug-handler" interface implementation ofPCI_BRIDGE_DEV device.
Replace pci_bus_hotplug() wiring with setting link on PCI BUS...
pci/pcie: convert PCIE hotplug to use hotplug-handler API
Split pcie_cap_slot_hotplug() into hotplug/unplug callbacksand register them as "hotplug-handler" interface implementation ofPCIE_SLOT device.
hw/pci: switch to a generic hotplug handling for PCIDevice
make qdev_unplug()/device_set_realized() to call hotplug handler'splug/unplug methods if available and remove not needed anymorehot(un)plug handling from PCIDevice.
In case if hotplug handler is not available, revert to the legacy...
qdev:pci: refactor PCIDevice to use generic "hotpluggable" property
Get rid of PCIDevice specific PCIDeviceClass.no_hotplug and usegeneric DeviceClass.hotpluggable field instead.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>Reviewed-by: Michael S. Tsirkin <mst@redhat.com>...
hw/acpi: move typeinfo to the file end
do so to avoid not necessary forward declarations andplace typeinfo registration at the file end where it'susually expected.
loader: document that errno is set
Document that get_image_size sets errnoon failure.
Suggested-by: Peter Maydell <peter.maydell@linaro.org>Reviewed-by: Eric Blake <eblake@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
define hotplug interface
Provide a generic hotplug interface for hotplug handlers.Intended for replacing hotplug mechanism used byPCI/PCIE/SHPC code and will be used for memory hotplug.
qdev: add to BusState "hotplug-handler" link
It will allow to reuse field with different BUSes,reducing code duplication. Field is intended forreplacing 'hotplug_qdev' field in PCIBus and alsowill allow to avoid adding equivalent field toDimmBus with possiblitity to refactor other BUSes...
qdev: add "hotpluggable" property to Device
Currently it's possible to make PCIDevice not hotpluggableby using no_hotplug field of PCIDeviceClass. However itlimits this only to PCI devices and prevents fromgeneralizing hotplug code.
So add similar field to DeviceClass so it could be reused...
View all revisions | View revisions
Also available in: Atom