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

Daniel P. Berrange berrange at redhat.com
Mon Nov 8 19:34:52 UTC 2010


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


Daniel
-- 
|: Red Hat, Engineering, London    -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://deltacloud.org :|
|: http://autobuild.org        -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list