mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
qdev: add qbus_reset_all
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
8c43a6f05d
commit
d0508c3664
2 changed files with 18 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue