[libvirt] [PATCH 3/5] block_resize: Implement qemu monitor functions
Daniel P. Berrange
berrange at redhat.com
Tue Nov 29 09:01:46 UTC 2011
On Tue, Nov 29, 2011 at 04:27:34PM +0800, Osier Yang wrote:
> Implements functions for both HMP and QMP mode.
>
> For HMP mode, qemu uses "M" as the units by default, so the passed "sized"
> is divided by 1024.
>
> For QMP mode, qemu uses "Bytes" as the units by default, the passed "sized"
> is multiplied by 1024.
>
> All of the monitor functions return -1 on failure, 0 on success, or -2 if
> not supported.
> ---
> src/qemu/qemu_monitor.c | 15 +++++++++++++++
> src/qemu/qemu_monitor.h | 5 +++--
> src/qemu/qemu_monitor_json.c | 32 ++++++++++++++++++++++++++++++++
> src/qemu/qemu_monitor_json.h | 4 +++-
> src/qemu/qemu_monitor_text.c | 33 +++++++++++++++++++++++++++++++++
> src/qemu/qemu_monitor_text.h | 4 +++-
> 6 files changed, 89 insertions(+), 4 deletions(-)
ACK
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list