[Qemu-devel] Re: Registering buffers with a qdict

2010-05-10 Thread Luiz Capitulino
On Mon, 10 May 2010 12:59:47 +0200 Jan Kiszka jan.kis...@siemens.com wrote: Luiz Capitulino wrote: On Fri, 07 May 2010 16:21:13 +0200 Jan Kiszka jan.kis...@siemens.com wrote: Luiz Capitulino wrote: On Fri, 07 May 2010 13:45:03 +0200 Jan Kiszka jan.kis...@siemens.com wrote: Hi

Re: [Qemu-devel] Re: Registering buffers with a qdict

2010-05-10 Thread Avi Kivity
On 05/10/2010 01:59 PM, Jan Kiszka wrote: From a quick glance at the JSON spec, there is no room for a new type. I think we have to overload an existing one and convert that into a QBuffer (typically, we know the actual semantic). Hex string encoding is most compact, so I went this road.

Re: [Qemu-devel] Re: Registering buffers with a qdict

2010-05-10 Thread Jan Kiszka
Avi Kivity wrote: On 05/10/2010 01:59 PM, Jan Kiszka wrote: From a quick glance at the JSON spec, there is no room for a new type. I think we have to overload an existing one and convert that into a QBuffer (typically, we know the actual semantic). Hex string encoding is most compact, so I

Re: [Qemu-devel] Re: Registering buffers with a qdict

2010-05-10 Thread Avi Kivity
On 05/10/2010 04:43 PM, Jan Kiszka wrote: Avi Kivity wrote: On 05/10/2010 01:59 PM, Jan Kiszka wrote: From a quick glance at the JSON spec, there is no room for a new type. I think we have to overload an existing one and convert that into a QBuffer (typically, we know the actual

[Qemu-devel] Re: Registering buffers with a qdict

2010-05-07 Thread Luiz Capitulino
On Fri, 07 May 2010 13:45:03 +0200 Jan Kiszka jan.kis...@siemens.com wrote: Hi Luiz, what is the recommended way of pushing larger buffers (up to 64K so far) into a qdict? QLIST of QINT (one per byte) looks a bit heavy. I thought about hex-encoding the content first (series of %02X), then

[Qemu-devel] Re: Registering buffers with a qdict

2010-05-07 Thread Jan Kiszka
Luiz Capitulino wrote: On Fri, 07 May 2010 13:45:03 +0200 Jan Kiszka jan.kis...@siemens.com wrote: Hi Luiz, what is the recommended way of pushing larger buffers (up to 64K so far) into a qdict? QLIST of QINT (one per byte) looks a bit heavy. I thought about hex-encoding the content first

[Qemu-devel] Re: Registering buffers with a qdict

2010-05-07 Thread Luiz Capitulino
On Fri, 07 May 2010 16:21:13 +0200 Jan Kiszka jan.kis...@siemens.com wrote: Luiz Capitulino wrote: On Fri, 07 May 2010 13:45:03 +0200 Jan Kiszka jan.kis...@siemens.com wrote: Hi Luiz, what is the recommended way of pushing larger buffers (up to 64K so far) into a qdict? QLIST of