[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v7 18/23] qmp: support out-of-band (oob) executi
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH v7 18/23] qmp: support out-of-band (oob) execution |
Date: |
Wed, 21 Feb 2018 17:34:30 +0000 |
User-agent: |
Mutt/1.9.2 (2017-12-15) |
On Wed, Jan 24, 2018 at 01:39:52PM +0800, Peter Xu wrote:
> Having "allow-oob" to 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.
>
> Signed-off-by: Peter Xu <address@hidden>
> ---
> include/qapi/qmp/dispatch.h | 2 ++
> monitor.c | 84
> ++++++++++++++++++++++++++++++++++++++++-----
> qapi/qmp-dispatch.c | 32 ++++++++++++++++-
> trace-events | 2 ++
> 4 files changed, 110 insertions(+), 10 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH v7 18/23] qmp: support out-of-band (oob) execution,
Stefan Hajnoczi <=