QMP: Initial support
authorLuiz Capitulino <lcapitulino@redhat.com>
Fri, 27 Nov 2009 00:58:58 +0000 (22:58 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 15:41:22 +0000 (09:41 -0600)
commitef5ff44fb8bbfb2259880ef4f57764f3a08d3916
tree088fe8d6eccd145416c3a5c9e8f4cd8753c64f11
parent81d6ddcf3efb2174befa76187ad058ae115fcd6a
QMP: Initial support

This commit adds initial QMP support in QEMU. It's important
to notice that most QMP code will be part of the Monitor.

Input will be read by monitor_control_read(). Currently it
does nothing but next patches will add proper input support.

The function monitor_json_emitter(), as its name implies, is
used by the Monitor to emit JSON output. In this commit it's
used by monitor_control_event() to print our greeting message.

Finally, control mode support is also added to monitor_init(),
allowing QMP to be really enabled.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
monitor.c