From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aibnr-0004sE-Cb for qemu-devel@nongnu.org; Wed, 23 Mar 2016 01:58:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aibnq-0000ES-N6 for qemu-devel@nongnu.org; Wed, 23 Mar 2016 01:57:59 -0400 Date: Wed, 23 Mar 2016 13:57:39 +0800 From: Peter Xu Message-ID: <20160323055739.GJ28183@pxdev.xzpeter.org> References: <1458711153-15988-1-git-send-email-peterx@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1458711153-15988-1-git-send-email-peterx@redhat.com> Subject: Re: [Qemu-devel] [PATCH v6 0/4] ARM: add query-gic-capabilities SMP command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: wei@redhat.com, peter.maydell@linaro.org, drjones@redhat.com, mdroth@linux.vnet.ibm.com, libvir-list@redhat.com, armbru@redhat.com, abologna@redhat.com, qemu-arm@nongnu.org On Wed, Mar 23, 2016 at 01:32:29PM +0800, Peter Xu wrote: > The new command can report which kind of GIC device the host/QEMU > support. The returned result is in the form of array. > > Sample command and output: > > {"execute": "query-gic-capability"} > {"return": [{"emulated": false, "version": 3, "kernel": false}, > {"emulated": true, "version": 2, "kernel": true}]} Sorry! This is wrong, which is v5 version of interface. The new interface should return a dict rather than array: -> { "execute": "query-gic-capabilities" } <- { "return": { "capabilities": [ { "version": 2, "emulated": true, "kernel": false }, { "version": 3, "emulated": false, "kernel": true } ] } } Thanks. -- peterx