From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NIinB-0005FM-Fh for qemu-devel@nongnu.org; Thu, 10 Dec 2009 08:10:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NIin6-0005Bz-Mn for qemu-devel@nongnu.org; Thu, 10 Dec 2009 08:10:48 -0500 Received: from [199.232.76.173] (port=49332 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NIin6-0005Bh-8T for qemu-devel@nongnu.org; Thu, 10 Dec 2009 08:10:44 -0500 Received: from e36.co.us.ibm.com ([32.97.110.154]:41126) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NIin6-0007M6-87 for qemu-devel@nongnu.org; Thu, 10 Dec 2009 08:10:44 -0500 Received: from d03relay03.boulder.ibm.com (d03relay03.boulder.ibm.com [9.17.195.228]) by e36.co.us.ibm.com (8.14.3/8.13.1) with ESMTP id nBAD8Gxw009116 for ; Thu, 10 Dec 2009 06:08:16 -0700 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay03.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id nBADATpK040952 for ; Thu, 10 Dec 2009 06:10:31 -0700 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id nBADAQ72004921 for ; Thu, 10 Dec 2009 06:10:26 -0700 Message-ID: <4B20F341.9020600@linux.vnet.ibm.com> Date: Thu, 10 Dec 2009 07:10:25 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 06/19] monitor: do_info_cpus(): Use QBool References: <1260376078-8694-1-git-send-email-lcapitulino@redhat.com> <1260376078-8694-7-git-send-email-lcapitulino@redhat.com> <4B20F122.4070204@linux.vnet.ibm.com> <20091210110540.774180ea@doriath> In-Reply-To: <20091210110540.774180ea@doriath> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: Anthony Liguori , Markus Armbruster , qemu-devel@nongnu.org Luiz Capitulino wrote: > On Thu, 10 Dec 2009 07:01:22 -0600 > Anthony Liguori wrote: > > >> Markus Armbruster wrote: >> >>> Do we want to specify the base for numbers in the JSON? >>> >>> If yes, why not use decimal everywhere? >>> >>> Aside, if we use hexadecimal in JSON at all, then I'd prefer addresses >>> to be hexadecimal. >>> >>> >> Hexadecimal is not valid to represent numbers in JSON. >> > > We can return a string. > When it comes to returning u64s, we'll have to send these over the wire as s64s. It's not ideal but it's the only way to support languages that don't distinguish between signed and unsigned types. -- Regards, Anthony Liguori