[pve-devel] QMPClient sends commands before greeting happens

Stefan Priebe s.priebe at profihost.ag
Fri May 24 00:06:03 CEST 2013


Hi,

right now the QMPClient sends commands before the greeting happens. This 
might result in lost commands.

There is no guarantee, that all commands gets executed before we see the 
greetings. Shouldn't we wait for it?

With upcoming Qemu 1.5 i've the following socket communication:

'{"execute":"qmp_capabilities","id":"12125:1","arguments":{}}'

'{"return": {}, "id": "12125:1"}'

'{"execute":"qom-set","id":"12125:2","arguments":{"value":2,"path":"machine/peripheral/balloon0","property":"guest-stats-polling-interval"}}'

'{"QMP": {"version": {"qemu": {"micro": 0, "minor": 5, "major": 1}, 
"package": ""}, "capabilities": []}}'

'{"id": "12125:2", "error": {"class": "CommandNotFound", "desc": "The 
command qom-set has not been found"}}'

Stefan



More information about the pve-devel mailing list