aboutsummaryrefslogtreecommitdiff
path: root/hw/cbus.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-09-13 16:19:53 +0200
committerKevin Wolf <kwolf@redhat.com>2011-10-28 19:25:50 +0200
commit3653d8c40e04d78eb6b5b069522daf7cc72d4f06 (patch)
treea2aceb4fd51cfc13bbc19b876762df5bc72d9aa0 /hw/cbus.c
parentaf0e1ea2d32eafd837c51326368ce2d8f36e6871 (diff)
scsi: notify the device when unit attention is reported
Reporting media change events via unit attention sense codes requires a small state machine: first report "NO MEDIUM", then report "MEDIUM MAY HAVE CHANGED". Unfortunately there is no good hooking point for the device to notice that its pending unit attention condition has been reported. This patch reworks the generic machinery to add one. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/cbus.c')
0 files changed, 0 insertions, 0 deletions