Re: [Qemu-devel] [PATCH 29/30] qdev: drop legacy hotplug fields/methods

2014-09-24 Thread Igor Mammedov
On Wed, 24 Sep 2014 14:04:46 +0200 Paolo Bonzini wrote: > Il 24/09/2014 13:48, Igor Mammedov ha scritto: > > @@ -239,10 +239,7 @@ void qdev_unplug(DeviceState *dev, Error **errp) > > hotplug_handler_unplug(dev->parent_bus->hotplug_handler, dev, > > errp); > > } > > } e

Re: [Qemu-devel] [PATCH 29/30] qdev: drop legacy hotplug fields/methods

2014-09-24 Thread Paolo Bonzini
Il 24/09/2014 13:48, Igor Mammedov ha scritto: > @@ -239,10 +239,7 @@ void qdev_unplug(DeviceState *dev, Error **errp) > hotplug_handler_unplug(dev->parent_bus->hotplug_handler, dev, > errp); > } > } else { > -assert(dc->unplug != NULL); > -if (dc->unplug

[Qemu-devel] [PATCH 29/30] qdev: drop legacy hotplug fields/methods

2014-09-24 Thread Igor Mammedov
It removes not needed anymore BusState.allow_hotplug field and DeviceClass.unplug callback. Signed-off-by: Igor Mammedov --- hw/core/qdev.c | 15 +++ include/hw/qdev-core.h | 7 +-- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/hw/core/qdev.c b/hw/core/