| Submitter | Kevin Wolf |
|---|---|
| Date | Sept. 12, 2011, 2:19 p.m. |
| Message ID | <1315837174-15327-9-git-send-email-kwolf@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/114392/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index c8ad2e7..f18ddd7 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -72,6 +72,7 @@ struct SCSIDiskState QEMUBH *bh; char *version; char *serial; + bool tray_open; }; static int scsi_handle_rw_error(SCSIDiskReq *r, int error, int type); @@ -823,6 +824,7 @@ static void scsi_disk_emulate_start_stop(SCSIDiskReq *r) if (s->qdev.type == TYPE_ROM && loej) { bdrv_eject(s->bs, !start); + s->tray_open = !start; } }