On Fri, 2 Mar 2012, Alon Levy wrote: > On Fri, Mar 02, 2012 at 11:15:48AM -0500, Marc-André Lureau wrote: > > Interesting idea, then we would have a Spice "qemu monitor" channel, > > and we would need to do the same job as libvirt-qemu to have a stable > > layer on top. Arguably, we could share their code, but that doesn't seem > > trivial either. > > True. It would be simpler if there was a libqemumonitor inside qemu that > libvirt and us used.
We also wrote a library to open a QMP connection and handle QMP commands and responses, it is currently part of libxenlight (see libxl_qmp.c), but it doesn't have to. It is certainly possible to make it more generic if anybody is interested.