[libvirt] [PATCH 20/20] qemu_process: Enter QMP command mode when starting QEMU Process
jtomko at redhat.com
Tue Feb 19 15:46:34 UTC 2019
On Tue, Feb 19, 2019 at 10:05:03AM +0100, Jiri Denemark wrote:
>From: Chris Venteicher <cventeic at redhat.com>
>qemuProcessQMPStart starts a QEMU process and monitor connection that
>can be used by multiple functions possibly for multiple QMP commands.
>The QMP exchange to exit capabilities negotiation mode and enter command
>mode can only be performed once after the monitor connection is
>Move responsibility for entering QMP command mode into the
>qemuProcessQMP code so multiple functions can issue QMP commands in
>This also simplifies the functions using the connection provided by
>qemuProcessQMPStart to issue QMP commands.
>Test code now needs to call qemuMonitorSetCapabilities to send the
>message to switch to command mode because the test code does not use the
>qemuProcessQMP command that internally calls qemuMonitorSetCapabilities.
>Signed-off-by: Chris Venteicher <cventeic at redhat.com>
>Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> Version 7:
> - qemuMonitorSetCapabilities call was moved into a new
> qemuProcessQMPInitMonitor function, which is called from
> qemuProcessQMPConnectMonitor and the tests
> src/qemu/qemu_capabilities.c | 12 ------------
> src/qemu/qemu_process.c | 16 ++++++++++++++++
> src/qemu/qemu_processpriv.h | 2 ++
> tests/qemucapabilitiestest.c | 9 +++++++++
> 4 files changed, 27 insertions(+), 12 deletions(-)
Reviewed-by: Ján Tomko <jtomko at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 488 bytes
Desc: not available
More information about the libvir-list