Re: [Qemu-devel] [PATCH 1/3] scsi-disk: close drive on START_STOP

2013-12-06 Thread Markus Armbruster
Paolo Bonzini writes: > Il 05/12/2013 13:42, Alexey Kardashevskiy ha scritto: >> Thanks! >> >> Just out of curiosity. A lot (in fact, all around me) dvd drives do not >> support trayclose as they are in laptops or servers (which use the same >> laptop models). I cannot even verify how this "ejec

Re: [Qemu-devel] [PATCH 1/3] scsi-disk: close drive on START_STOP

2013-12-05 Thread Paolo Bonzini
Il 05/12/2013 13:42, Alexey Kardashevskiy ha scritto: > Thanks! > > Just out of curiosity. A lot (in fact, all around me) dvd drives do not > support trayclose as they are in laptops or servers (which use the same > laptop models). I cannot even verify how this "eject -t" exactly works - no > hard

Re: [Qemu-devel] [PATCH 1/3] scsi-disk: close drive on START_STOP

2013-12-05 Thread Alexey Kardashevskiy
On 12/05/2013 11:29 PM, Markus Armbruster wrote: > Markus Armbruster writes: > >> Paolo Bonzini writes: >> >>> Il 04/12/2013 05:55, Alexey Kardashevskiy ha scritto: Normally the user is expected to eject DVD if it is not locked by the guest. eject_device() makes few checks and calls bd

Re: [Qemu-devel] [PATCH 1/3] scsi-disk: close drive on START_STOP

2013-12-05 Thread Markus Armbruster
Markus Armbruster writes: > Paolo Bonzini writes: > >> Il 04/12/2013 05:55, Alexey Kardashevskiy ha scritto: >>> Normally the user is expected to eject DVD if it is not locked by >>> the guest. eject_device() makes few checks and calls bdrv_close() >>> if DVD is not in use. >>> >>> However it i

Re: [Qemu-devel] [PATCH 1/3] scsi-disk: close drive on START_STOP

2013-12-05 Thread Markus Armbruster
Alexey Kardashevskiy writes: > On 12/05/2013 12:12 AM, Markus Armbruster wrote: >> Alexey Kardashevskiy writes: >> >>> On 12/04/2013 08:33 PM, Markus Armbruster wrote: Paolo Bonzini writes: > Il 04/12/2013 05:55, Alexey Kardashevskiy ha scritto: >> Normally the user is expect

Re: [Qemu-devel] [PATCH 1/3] scsi-disk: close drive on START_STOP

2013-12-04 Thread Alexey Kardashevskiy
On 12/05/2013 12:12 AM, Markus Armbruster wrote: > Alexey Kardashevskiy writes: > >> On 12/04/2013 08:33 PM, Markus Armbruster wrote: >>> Paolo Bonzini writes: >>> Il 04/12/2013 05:55, Alexey Kardashevskiy ha scritto: > Normally the user is expected to eject DVD if it is not locked by >

Re: [Qemu-devel] [PATCH 1/3] scsi-disk: close drive on START_STOP

2013-12-04 Thread Markus Armbruster
Alexey Kardashevskiy writes: > On 12/04/2013 08:33 PM, Markus Armbruster wrote: >> Paolo Bonzini writes: >> >>> Il 04/12/2013 05:55, Alexey Kardashevskiy ha scritto: Normally the user is expected to eject DVD if it is not locked by the guest. eject_device() makes few checks and calls

Re: [Qemu-devel] [PATCH 1/3] scsi-disk: close drive on START_STOP

2013-12-04 Thread Alexey Kardashevskiy
On 12/04/2013 08:33 PM, Markus Armbruster wrote: > Paolo Bonzini writes: > >> Il 04/12/2013 05:55, Alexey Kardashevskiy ha scritto: >>> Normally the user is expected to eject DVD if it is not locked by >>> the guest. eject_device() makes few checks and calls bdrv_close() >>> if DVD is not in use.

Re: [Qemu-devel] [PATCH 1/3] scsi-disk: close drive on START_STOP

2013-12-04 Thread Markus Armbruster
Paolo Bonzini writes: > Il 04/12/2013 05:55, Alexey Kardashevskiy ha scritto: >> Normally the user is expected to eject DVD if it is not locked by >> the guest. eject_device() makes few checks and calls bdrv_close() >> if DVD is not in use. >> >> However it is still possible to eject DVD even if

Re: [Qemu-devel] [PATCH 1/3] scsi-disk: close drive on START_STOP

2013-12-04 Thread Paolo Bonzini
Il 04/12/2013 05:55, Alexey Kardashevskiy ha scritto: > Normally the user is expected to eject DVD if it is not locked by > the guest. eject_device() makes few checks and calls bdrv_close() > if DVD is not in use. > > However it is still possible to eject DVD even if it is in use. > For that, QEMU

[Qemu-devel] [PATCH 1/3] scsi-disk: close drive on START_STOP

2013-12-03 Thread Alexey Kardashevskiy
Normally the user is expected to eject DVD if it is not locked by the guest. eject_device() makes few checks and calls bdrv_close() if DVD is not in use. However it is still possible to eject DVD even if it is in use. For that, QEMU sets "eject requested" flag, the guest reads it, issues ALLOW_MED