From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=56371 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ODwST-0004Lo-E6 for qemu-devel@nongnu.org; Mon, 17 May 2010 05:18:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ODwSR-0006xn-LK for qemu-devel@nongnu.org; Mon, 17 May 2010 05:17:57 -0400 Received: from thoth.sbs.de ([192.35.17.2]:19887) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ODwSR-0006xa-6U for qemu-devel@nongnu.org; Mon, 17 May 2010 05:17:55 -0400 Message-ID: <4BF109BD.40201@siemens.com> Date: Mon, 17 May 2010 11:17:49 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <6e14cbfe3764b46d9bd6d2db61d41fd9c85dd54e.1273843151.git.jan.kiszka@siemens.com> <4BED9358.1000106@codemonkey.ws> <20100516173809.GA29814@shareable.org> <4BF0E6CD.7090909@redhat.com> <4BF0F2FD.90408@siemens.com> <4BF0F437.6040302@redhat.com> <4BF0F6D3.8020803@siemens.com> <4BF0FA13.10808@redhat.com> <4BF10481.7030900@siemens.com> <4BF1055A.5020600@redhat.com> In-Reply-To: <4BF1055A.5020600@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 3/8] Add QBuffer List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Anthony Liguori , Juan Quintela , "qemu-devel@nongnu.org" , Markus Armbruster , Luiz Capitulino Avi Kivity wrote: > On 05/17/2010 11:55 AM, Jan Kiszka wrote: >>> The names of fields are also type information. >>> >> Not in the case of device_show. The clients have no idea of the vmstate >> structures before they were transfered. Granted, that will likely remain >> a special case in the QMP command set. >> > > For that use case, I agree. Maybe we should send both the parsed and > unparsed information. Now I can't parse what you mean. > > But if the client isn't going to interpret the object and only display > it, then there is no need for __class__? For that uncommon case, yes. But the common one is to perform a bit more than raw JSON dictionary printing. Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux