summaryrefslogtreecommitdiffstats
path: root/qmp-commands.hx
diff options
context:
space:
mode:
authorPaolo Bonzini2012-03-22 12:51:10 +0100
committerLuiz Capitulino2012-03-27 14:15:13 +0200
commite38ac9621c8ab51880b9e6e833a125342d6b46b2 (patch)
tree9221097ab672970e8929da9827f9a34ecb02a1e2 /qmp-commands.hx
parentqapi: place outermost object on qiv stack (diff)
downloadqemu-e38ac9621c8ab51880b9e6e833a125342d6b46b2.tar.gz
qemu-e38ac9621c8ab51880b9e6e833a125342d6b46b2.tar.xz
qemu-e38ac9621c8ab51880b9e6e833a125342d6b46b2.zip
qapi: add strict mode to input visitor
While QMP in general is designed so that it is possible to ignore unknown arguments, in the case of the QMP server it is better to reject them to detect bad clients. In fact, we're already doing this at the top level in the argument checker. To extend this to complex structures, add a mode to the input visitor where it checks for unvisited keys and raises an error if it finds one. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qmp-commands.hx')
0 files changed, 0 insertions, 0 deletions