Re: [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface

2016-03-23 Thread Eric Blake
On 03/23/2016 08:06 AM, Markus Armbruster wrote: >>> query-gic-capabilities looks like it fundamentally returns a list of >>> capabilities. Returning ['GICCapability'] is just fine then. >> >> I have posted v6 just as Eric has suggested. At least one advantage >> is that it is easier to be extend

Re: [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface

2016-03-23 Thread Markus Armbruster
Peter Xu writes: > On Wed, Mar 23, 2016 at 10:52:29AM +0100, Markus Armbruster wrote: >> The rule against returning non-dictionaries exists to avoid interfaces >> that cannot evolve. With a dictionary, you can evolve by adding >> members. >> >> The rule does *not* forbid returning lists of dict

Re: [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface

2016-03-23 Thread Peter Xu
On Wed, Mar 23, 2016 at 10:52:29AM +0100, Markus Armbruster wrote: > The rule against returning non-dictionaries exists to avoid interfaces > that cannot evolve. With a dictionary, you can evolve by adding > members. > > The rule does *not* forbid returning lists of dictionaries. When a > comman

Re: [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface

2016-03-23 Thread Markus Armbruster
Peter Xu writes: > On Tue, Mar 22, 2016 at 12:42:42PM -0600, Eric Blake wrote: >> On 03/17/2016 09:27 PM, Peter Xu wrote: >> > This patch adds the command "query-gic-capabilities" but not implemnet >> >> s/not implemnet/does not implement/ > > Yep, again. Thanks. > >> >> > it. The command is AR

Re: [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface

2016-03-23 Thread Markus Armbruster
Peter Xu writes: > On Tue, Mar 22, 2016 at 07:28:13PM +0100, Markus Armbruster wrote: >> Peter Xu writes: >> > diff --git a/scripts/qapi.py b/scripts/qapi.py >> > index 6b2aa6e..716474e 100644 >> > --- a/scripts/qapi.py >> > +++ b/scripts/qapi.py >> > @@ -46,6 +46,7 @@ returns_whitelist = [ >>

Re: [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface

2016-03-22 Thread Peter Xu
On Tue, Mar 22, 2016 at 07:28:13PM +0100, Markus Armbruster wrote: > Peter Xu writes: > > diff --git a/scripts/qapi.py b/scripts/qapi.py > > index 6b2aa6e..716474e 100644 > > --- a/scripts/qapi.py > > +++ b/scripts/qapi.py > > @@ -46,6 +46,7 @@ returns_whitelist = [ ># Whitelist of commands al

Re: [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface

2016-03-22 Thread Peter Xu
On Tue, Mar 22, 2016 at 12:42:42PM -0600, Eric Blake wrote: > On 03/17/2016 09:27 PM, Peter Xu wrote: > > This patch adds the command "query-gic-capabilities" but not implemnet > > s/not implemnet/does not implement/ Yep, again. Thanks. > > > it. The command is ARM-only. Return of the command i

Re: [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface

2016-03-22 Thread Markus Armbruster
Eric Blake writes: > On 03/17/2016 09:27 PM, Peter Xu wrote: >> This patch adds the command "query-gic-capabilities" but not implemnet > > s/not implemnet/does not implement/ > >> it. The command is ARM-only. Return of the command is a list of >> GICCapability struct that describes all GIC versio

Re: [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface

2016-03-22 Thread Eric Blake
On 03/17/2016 09:27 PM, Peter Xu wrote: > This patch adds the command "query-gic-capabilities" but not implemnet s/not implemnet/does not implement/ > it. The command is ARM-only. Return of the command is a list of > GICCapability struct that describes all GIC versions that current QEMU > and sys

Re: [Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface

2016-03-22 Thread Markus Armbruster
Copying Eric in case further review is needed in my absence. Peter Xu writes: > This patch adds the command "query-gic-capabilities" but not implemnet > it. The command is ARM-only. Return of the command is a list of > GICCapability struct that describes all GIC versions that current QEMU > and

[Qemu-devel] [PATCH v5 2/5] arm: qmp: add query-gic-capabilities interface

2016-03-19 Thread Peter Xu
This patch adds the command "query-gic-capabilities" but not implemnet it. The command is ARM-only. Return of the command is a list of GICCapability struct that describes all GIC versions that current QEMU and system support. Signed-off-by: Peter Xu --- monitor.c| 8 qa