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