qdev: introduce reset call back for qbus level
authorIsaku Yamahata <yamahata@valinux.co.jp>
Fri, 19 Nov 2010 09:56:00 +0000 (18:56 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 22 Nov 2010 08:00:07 +0000 (10:00 +0200)
commit3b17a5aa6567f098fd014c103ad9e9c1c394d8f0
tree08d67544f6b12d80af2c9c1ac793b8d29b86d1d8
parente15e5cf9340a6213fb0537e1775a91f927a00fcf
qdev: introduce reset call back for qbus level

and make it called via qbus_reset_all().
The qbus reset callback will be used by pci bus reset.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/qdev.c
hw/qdev.h