block: Drop medium lock tracking, ask device models instead
authorMarkus Armbruster <armbru@redhat.com>
Tue, 6 Sep 2011 16:58:46 +0000 (18:58 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 12 Sep 2011 13:17:20 +0000 (15:17 +0200)
commitf107639a6ff0c8d02f6a2dfdfce3a9d9f1e2eb27
tree0c5368f533034b7e1adbd02be5dcff6367cf3a94
parentfdec4404ddfaf9e121bef84eac1303a8a0e47d75
block: Drop medium lock tracking, ask device models instead

Requires new BlockDevOps member is_medium_locked().  Implement for IDE
and SCSI CD-ROMs.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block.h
block_int.h
blockdev.c
hw/ide/core.c
hw/scsi-disk.c