scsi-disk: Track tray locked state
authorMarkus Armbruster <armbru@redhat.com>
Tue, 6 Sep 2011 16:58:44 +0000 (18:58 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 12 Sep 2011 13:17:20 +0000 (15:17 +0200)
commit81b1008d50829fdcbe79aa67fa1113bb00a787d6
tree121f72f462c6d261cc13486f443ebbc20c904b6a
parenta0a7573b846ae9b346a34f10c4fe4e317b9eebfd
scsi-disk: Track tray locked state

We already track it in BlockDriverState.  Just like tray open/close
state, we should track it in the device models instead, because it's
device state.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/scsi-disk.c