summary refs log tree commit diff stats
path: root/qemu-sockets.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2010-02-04 18:10:06 -0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-02-10 12:46:05 -0600
commit09069b19f49311c772e220b44edb19fdd446ba5f (patch)
treed9625809ae19ffb958bbdf7575cd66e2ba1db535 /qemu-sockets.c
parent4a7e1190dfadf1154721125af8510347f8a3c56b (diff)
downloadfocaccia-qemu-09069b19f49311c772e220b44edb19fdd446ba5f.tar.gz
focaccia-qemu-09069b19f49311c772e220b44edb19fdd446ba5f.zip
QMP: Enforce capability negotiation rules
With this commit QMP will be started in Capabilities Negotiation
mode, where the only command allowed to run is 'qmp_capabilities'.

All other commands will return CommandNotFound error. Asynchronous
messages are not delivered either.

When 'qmp_capabilities' is successfully executed QMP enters in
Command mode, where all commands (except 'qmp_capabilities') are
allowed to run and asynchronous messages are delivered.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-sockets.c')
0 files changed, 0 insertions, 0 deletions