qdev: add to BusState "hotplug-handler" link
commit0ee4de6ce1d403b3d8017b340cec772c3c5c106f
authorIgor Mammedov <imammedo@redhat.com>
Wed, 5 Feb 2014 15:36:45 +0000 (5 16:36 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 10 Feb 2014 08:23:35 +0000 (10 10:23 +0200)
tree5897f3f11213c2fad037fdca862d0ed288c798bb
parent9f117d41841e13ca29cc2a10ac03258339ea1f8b
qdev: add to BusState "hotplug-handler" link

It will allow to reuse field with different BUSes,
reducing code duplication. Field is intended for
replacing 'hotplug_qdev' field in PCIBus and also
will allow to avoid adding equivalent field to
DimmBus with possiblitity to refactor other BUSes
to use it instead of custom field.
In addition once all users of allow_hotplug field
are converted to new API, link could replace
allow_hotplug field in qdev hotplug code.

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
include/hw/qdev-core.h