ide/atapi: Track tray locked state
authorMarkus Armbruster <armbru@redhat.com>
Tue, 6 Sep 2011 16:58:43 +0000 (18:58 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 12 Sep 2011 13:17:20 +0000 (15:17 +0200)
commita0a7573b846ae9b346a34f10c4fe4e317b9eebfd
tree0de6ee5cb1c4b7f5913f41a7c3776736b89012af
parent22cf56c4d81935bf89a30c2dc0296c1f14199518
ide/atapi: 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/ide/atapi.c
hw/ide/internal.h