From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euqxB-0006ge-B2 for qemu-devel@nongnu.org; Sat, 10 Mar 2018 21:43:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euqx8-0005Hd-86 for qemu-devel@nongnu.org; Sat, 10 Mar 2018 21:43:17 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:34292 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1euqx8-0005HV-3I for qemu-devel@nongnu.org; Sat, 10 Mar 2018 21:43:14 -0500 References: <20180309090006.10018-1-peterx@redhat.com> <20180309090006.10018-22-peterx@redhat.com> From: Eric Blake Message-ID: <6c1368c4-4246-677a-55c8-6f2c70e126bf@redhat.com> Date: Sat, 10 Mar 2018 20:42:57 -0600 MIME-Version: 1.0 In-Reply-To: <20180309090006.10018-22-peterx@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v8 21/23] qmp: add command "x-oob-test" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Xu , qemu-devel@nongnu.org Cc: Stefan Hajnoczi , "Daniel P . Berrange" , Paolo Bonzini , Fam Zheng , Juan Quintela , mdroth@linux.vnet.ibm.com, Laurent Vivier , Markus Armbruster , marcandre.lureau@redhat.com, "Dr . David Alan Gilbert" On 03/09/2018 03:00 AM, Peter Xu wrote: > This command is only used to test OOB functionality. It should not be > used for any other purposes. > > Reviewed-by: Stefan Hajnoczi > Reviewed-by: Fam Zheng > Signed-off-by: Peter Xu > --- > qapi/misc.json | 18 ++++++++++++++++++ > qmp.c | 16 ++++++++++++++++ > 2 files changed, 34 insertions(+) > > diff --git a/qapi/misc.json b/qapi/misc.json > index 8c7e736681..07932bdacf 100644 > --- a/qapi/misc.json > +++ b/qapi/misc.json > @@ -3264,3 +3264,21 @@ > ## > { 'event': 'COMMAND_DROPPED' , > 'data': { 'id': 'any', 'reason': 'CommandDropReason' } } > + > +## > +# @x-oob-test: > +# > +# Test OOB functionality. When send this command with lock=true, s/send/sending/ > +# it'll try to hang the dispatcher. When send it with lock=false, s/send/sending/ > +# it'll try to notify the locked thread to continue. Note: it should > +# only be used by QMP test program rather than anything else. > +# > +# Since: 2.12 > +# > +# Example: > +# > +# { "execute": "x-oob-test", > +# "arguments": { "lock": true } } > +## > +{ 'command': 'x-oob-test', 'data' : { 'lock': 'bool' }, > + 'allow-oob': true } Reviewed-by: Eric Blake -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org