[libvirt] [PATCH v2] qemu: Add flag to force a CDROM eject

Cole Robinson crobinso at redhat.com
Wed Nov 10 17:49:41 UTC 2010


On 11/08/2010 02:34 PM, Daniel P. Berrange wrote:
> On Mon, Nov 08, 2010 at 02:10:18PM -0500, Cole Robinson wrote:
>> QEMU allows forcing a CDROM eject even if the guest has locked the device.
>> Expose this via a new UpdateDevice flag, VIR_DOMAIN_DEVICE_MODIFY_FORCE.
>>
>> This has been requested for RHEV:
>>
>> https://bugzilla.redhat.com/show_bug.cgi?id=626305
>>
>> v2: Change flag name, bool cleanups
>>
>> Signed-off-by: Cole Robinson <crobinso at redhat.com>
>> ---
>>  include/libvirt/libvirt.h.in |    2 ++
>>  src/qemu/qemu_driver.c       |   15 ++++++++++-----
>>  src/qemu/qemu_monitor.c      |    9 +++++----
>>  src/qemu/qemu_monitor.h      |    6 ++----
>>  src/qemu/qemu_monitor_json.c |    5 +++--
>>  src/qemu/qemu_monitor_json.h |    3 ++-
>>  src/qemu/qemu_monitor_text.c |    5 +++--
>>  src/qemu/qemu_monitor_text.h |    3 ++-
>>  8 files changed, 29 insertions(+), 19 deletions(-)
> 
> ACK
> 

Thanks, pushed now.

- Cole




More information about the libvir-list mailing list