• Peter Xu's avatar
    qmp: support out-of-band (oob) execution · cf869d53
    Peter Xu authored
    Having "allow-oob":true for a command does not mean that this command
    will always be run in out-of-band mode.  The out-of-band quick path will
    only be executed if we specify the extra "run-oob" flag when sending the
    QMP request:
    
        { "execute":   "command-that-allows-oob",
          "arguments": { ... },
          "control":   { "run-oob": true } }
    
    The "control" key is introduced to store this extra flag.  "control"
    field is used to store arguments that are shared by all the commands,
    rather than command specific arguments.  Let "run-oob" be the first.
    
    Note that in the patch I exported qmp_dispatch_check_obj() to be used to
    check the request earlier, and at the same time allowed "id" field to be
    there since actually we always allow that.
    Reviewed-by: 's avatarStefan Hajnoczi <stefanha@redhat.com>
    Signed-off-by: 's avatarPeter Xu <peterx@redhat.com>
    Message-Id: <20180309090006.10018-19-peterx@redhat.com>
    Reviewed-by: 's avatarEric Blake <eblake@redhat.com>
    [eblake: rebase to qobject_to(), spelling fix]
    Signed-off-by: 's avatarEric Blake <eblake@redhat.com>
    cf869d53
Name
Last commit
Last update
..
qmp Loading commit data...
clone-visitor.h Loading commit data...
dealloc-visitor.h Loading commit data...
error.h Loading commit data...
opts-visitor.h Loading commit data...
qmp-event.h Loading commit data...
qobject-input-visitor.h Loading commit data...
qobject-output-visitor.h Loading commit data...
string-input-visitor.h Loading commit data...
string-output-visitor.h Loading commit data...
util.h Loading commit data...
visitor-impl.h Loading commit data...
visitor.h Loading commit data...