OSDN Git Service

qom: add a reference count to qdev objects
authorAnthony Liguori <aliguori@us.ibm.com>
Mon, 12 Dec 2011 20:29:25 +0000 (14:29 -0600)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 15 Dec 2011 15:20:47 +0000 (09:20 -0600)
commit85ed303bfe1f67a4c18ffe51916e73cffd7d9e9b
tree8d0188741f650e031c3f841778e6a1d07e1e21c5
parent222f23f508a8d778f56eddef14752dfd26d225b4
qom: add a reference count to qdev objects

To ensure that a device isn't removed from the graph until all of its links are
broken.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev.c
hw/qdev.h