qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 56/56] docs/interop/qmp-spec: How to force known


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 56/56] docs/interop/qmp-spec: How to force known good parser state
Date: Fri, 17 Aug 2018 09:34:06 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 08/17/2018 03:37 AM, Markus Armbruster wrote:

Perhaps worth documenting is the range of JSON numbers produced by
qemu (maybe as a separate patch). Libvirt just hit a bug with the
jansson library making it extremely difficult to parse JSON containing
numbers larger than INT64_MAX, when compared to yajl which had a way
to support up to UINT64_MAX.

https://bugzilla.redhat.com/show_bug.cgi?id=1614569

Knowing that qemu sends numbers larger than INT64_MAX with the intent
that they not be truncated/rounded by conversion to double can be a
vital piece of information for implementing a client, when it comes to
picking a particular library for JSON parsing.

Good point.  Doesn't really fit into this commit, though.  Care to
propose a patch?

Will do, but I'll probably wait for your v2 series to land first.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]