[libvirt] [PATCH v3 18/20] Move command/event capabilities detection out of QEMU monitor code

Jiri Denemark jdenemar at redhat.com
Thu Sep 27 10:11:51 UTC 2012


On Tue, Sep 25, 2012 at 19:00:11 +0100, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> The qemuMonitorSetCapabilities() API is used to initialize the QMP
> protocol capabilities. It has since been abused to initialize some
> libvirt internal capabilities based on command/event existance too.
> Move the latter code out into qemuCapsProbeQMP() in the QEMU
> capabilities source file instead
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/qemu/qemu_capabilities.c | 70 ++++++++++++++++++++++++++++++++++++++++++++
>  src/qemu/qemu_capabilities.h |  4 +++
>  src/qemu/qemu_monitor.c      | 11 +------
>  src/qemu/qemu_monitor.h      |  4 +--
>  src/qemu/qemu_monitor_json.c | 59 -------------------------------------
>  src/qemu/qemu_monitor_json.h |  5 ----
>  src/qemu/qemu_process.c      |  5 +++-
>  7 files changed, 80 insertions(+), 78 deletions(-)

ACK

Jirka




More information about the libvir-list mailing list