From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uu3yC-0008I8-0u for qemu-devel@nongnu.org; Tue, 02 Jul 2013 13:02:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uu3yA-0001OY-LM for qemu-devel@nongnu.org; Tue, 02 Jul 2013 13:02:23 -0400 Received: from mx3-phx2.redhat.com ([209.132.183.24]:41934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uu3yA-0001OD-CM for qemu-devel@nongnu.org; Tue, 02 Jul 2013 13:02:22 -0400 Date: Tue, 2 Jul 2013 13:01:21 -0400 (EDT) From: Paolo Bonzini Message-ID: <1408396387.2128564.1372784481475.JavaMail.root@redhat.com> In-Reply-To: <51D3035A.1060605@redhat.com> References: <1371644677-11041-1-git-send-email-akong@redhat.com> <878v1pqak4.fsf@codemonkey.ws> <51D2F1B3.1080903@redhat.com> <20130702153945.GZ2524@redhat.com> <51D3035A.1060605@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] full introspection support for QMP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Anthony Liguori , mdroth , qemu-devel@nongnu.org, armbru@redhat.com, lcapitulino@redhat.com, qiaonuohan@cn.fujitsu.com, Amos Kong > > Arguably that rule of thumb would apply equally to the QEMU > > build scripts which already parse qapi-schema.json. It could > > be possible to normalize qapi-schema.json somewhat to remove > > this 2-stage parsing if we went down this route. > > Indeed, I wouldn't mind a one-time pass over qapi-schema.json to make it > follow a more rigid format if that made it easier to use it as-is with > less post-processing. It won't be very nice to backport such a > conversion, but I don't know how much distros are planning on > backporting introspection in the first place. How would the schema look like after this "one-time pass"? This: > [ > { "name": "protocol", > "type": "str" }, > { "name": "fdname", > "type": "str" }, > { "name": "skipauth", > "type": "bool", > "optional": true }, > { "name": "tls", > "type": "bool", > "optional": true } > ] Looks quite awful for a human to write and read. Paolo