Received: from eggs.gnu.org ([2001:4830:134:3::10]:47509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiR3t-0005Fu-UO for qemu-devel@nongnu.org; Tue, 22 Mar 2016 14:29:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiR3t-0002DV-0S for qemu-devel@nongnu.org; Tue, 22 Mar 2016 14:29:49 -0400 From: Markus Armbruster References: <1458271654-23706-1-git-send-email-peterx@redhat.com> <1458271654-23706-2-git-send-email-peterx@redhat.com> Date: Tue, 22 Mar 2016 19:29:44 +0100 In-Reply-To: <1458271654-23706-2-git-send-email-peterx@redhat.com> (Peter Xu's message of "Fri, 18 Mar 2016 11:27:30 +0800") Message-ID: <87zitqjrhj.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v5 1/5] arm: qmp: add GICCapability struct List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Xu Cc: wei@redhat.com, peter.maydell@linaro.org, drjones@redhat.com, mdroth@linux.vnet.ibm.com, qemu-devel@nongnu.org, abologna@redhat.com, qemu-arm@nongnu.org Peter Xu writes: > Define new struct to describe whether we support specific GIC version. > > Signed-off-by: Peter Xu > --- > qapi-schema.json | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/qapi-schema.json b/qapi-schema.json > index f253a37..da9671a 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -4134,3 +4134,25 @@ > ## > { 'enum': 'ReplayMode', > 'data': [ 'none', 'record', 'play' ] } > + > +## > +# @GICCapability: > +# > +# This struct describes capability for a specific GIC version. These > +# bits are not only decided by QEMU/KVM software version, but also > +# decided by the hardware that the program is running upon. > +# > +# @version: version of GIC to be described. > +# > +# @emulated: whether current QEMU/hardware supports emulated GIC > +# device in user space. > +# > +# @kernel: whether current QEMU/hardware supports hardware > +# accelerated GIC device in kernel. > +# > +# Since: 2.6 > +## > +{ 'struct': 'GICCapability', > + 'data': { 'version': 'int', > + 'emulated': 'bool', > + 'kernel': 'bool' } } Are all four combinations of (emulated, kernel) possible?