Re: [Qemu-devel] [PATCH] scsi: Handle no media case for scsi_get_configuration

2015-07-22 Thread Matthew Rosato
On 07/22/2015 10:18 AM, Paolo Bonzini wrote: > > > On 22/07/2015 16:15, Matthew Rosato wrote: >> On 07/15/2015 02:52 PM, Matthew Rosato wrote: >>> Currently, scsi_get_configuration always returns a current >>> profile (DVD or CD), even when there is actually no media present. >>> By comparison, i

Re: [Qemu-devel] [PATCH] scsi: Handle no media case for scsi_get_configuration

2015-07-22 Thread Paolo Bonzini
On 22/07/2015 16:15, Matthew Rosato wrote: > On 07/15/2015 02:52 PM, Matthew Rosato wrote: >> Currently, scsi_get_configuration always returns a current >> profile (DVD or CD), even when there is actually no media present. >> By comparison, ide/atapi uses a default profile of 0 (MMC_PROFILE_NONE)

Re: [Qemu-devel] [PATCH] scsi: Handle no media case for scsi_get_configuration

2015-07-22 Thread Matthew Rosato
On 07/15/2015 02:52 PM, Matthew Rosato wrote: > Currently, scsi_get_configuration always returns a current > profile (DVD or CD), even when there is actually no media present. > By comparison, ide/atapi uses a default profile of 0 (MMC_PROFILE_NONE) > for this case and checks for tray_open, so let'

[Qemu-devel] [PATCH] scsi: Handle no media case for scsi_get_configuration

2015-07-15 Thread Matthew Rosato
Currently, scsi_get_configuration always returns a current profile (DVD or CD), even when there is actually no media present. By comparison, ide/atapi uses a default profile of 0 (MMC_PROFILE_NONE) for this case and checks for tray_open, so let's do the same for scsi. This fixes a problem I'm seei