SCSI: STARTSTOPUNIT only eject/load media if powercondition is 0
commitae5708b36d34f72aa8c91e3dad56b266dfde73f1
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 28 Jul 2012 01:14:53 +0000 (28 11:14 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 3 Aug 2012 08:01:35 +0000 (3 10:01 +0200)
tree89eeaa5f3c3abeab2116978e0d464e437df0fc68
parent93161b69a53241be71e1aab7f792d78d9bfd19d3
SCSI: STARTSTOPUNIT only eject/load media if powercondition is 0

The START STOP UNIT command will only eject/load media if
power condition is zero.

If power condition is !0 then LOEJ and START will be ignored.

From MMC (sbc contains similar wordings too)
  The Power Conditions field requests the block device to be placed
  in the power condition defined in
  Table 558. If this field has a value other than 0h then the Start
  and LoEj bits shall be ignored.

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi-disk.c