lsi: Handle removal of selected devices
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 4 May 2010 12:21:03 +0000 (14:21 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 10 May 2010 16:36:04 +0000 (11:36 -0500)
commit2ee156488cde677b3e32fc0557ea5c272fe87a84
tree4bc9d628616783a6290828307f842c60771ec96d
parent83bd0594cf0101b6cc2e9827b6ac05c4ba1b5914
lsi: Handle removal of selected devices

We must not store references to selected devices as they may be
hot-removed. Instead, look up the device based on its tag right before
using it. If the device disappeared, throw an interrupt and disconnect.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/lsi53c895a.c