scsi-disk: report media changed via unit attention sense codes
commit8a9c16f69e3ecbcc6e6bc068012986b87412c876
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 13 Sep 2011 14:26:06 +0000 (13 16:26 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Oct 2011 17:25:50 +0000 (28 19:25 +0200)
tree0bed1484dc690d5fa8d0ccf6bde5a704b9404ae1
parent3653d8c40e04d78eb6b5b069522daf7cc72d4f06
scsi-disk: report media changed via unit attention sense codes

Building on the previous patch, this one adds a media change callback
to scsi-disk.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi-bus.c
hw/scsi-disk.c
hw/scsi.h