summaryrefslogtreecommitdiffstats
path: root/hw/qdev.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-01-10 15:49:07 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2013-01-10 15:22:42 -0600
commitd0508c3664290baad379f6513c92cae6e5aac95b (patch)
tree975620e6446dfa60cbe618f1ec1d9ca0e7e0f049 /hw/qdev.c
parent8c43a6f05d5ef3c9484bd2be9d4e818d58e62016 (diff)
downloadhqemu-d0508c3664290baad379f6513c92cae6e5aac95b.zip
hqemu-d0508c3664290baad379f6513c92cae6e5aac95b.tar.gz
qdev: add qbus_reset_all
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev.c')
-rw-r--r--hw/qdev.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/hw/qdev.c b/hw/qdev.c
index b027ead..1b68d02 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -228,10 +228,15 @@ void qdev_reset_all(DeviceState *dev)
qdev_walk_children(dev, qdev_reset_one, qbus_reset_one, NULL);
}
+void qbus_reset_all(BusState *bus)
+{
+ qbus_walk_children(bus, qdev_reset_one, qbus_reset_one, NULL);
+}
+
void qbus_reset_all_fn(void *opaque)
{
BusState *bus = opaque;
- qbus_walk_children(bus, qdev_reset_one, qbus_reset_one, NULL);
+ qbus_reset_all(bus);
}
/* can be used as ->unplug() callback for the simple cases */
OpenPOWER on IntegriCloud