qemu monitor protocol简介
参考:
http://wiki.qemu.org/QMP
http://humblec.com/qmp-qemu-monitor-protocol-and-different-ways-of-accessing-it/
相关文件:
qmp-commands.hx
qmp-events.txt
qmp-spec.txt
qapi-schema.json
writing-qmp-commands.txt
hmp-commands.hx
一、简介
qemu monitor protocol 简称qmp,是以json为格式的一种协议。qmp是qemu-kvm虚拟机中的一个重要组成部分。如果使用libvirt起一台虚拟机,libvirt使用qmp给qemu发送命令,qemu通过qmp events(qmp 事件)返回,所以说qmp是libvirt和qemu之间交互的一个重要通道。
根据http://wiki.qemu.org/QMP中的介绍,现在我们使用的命令还是放在qmp-commands.hx和hmp-commands.hx中,未来希望都放在q