* [Qemu-devel] ARRAYS :QMP Declaration
@ 2013-07-16 1:27 Saptarshi Sen
2013-07-16 13:30 ` Luiz Capitulino
2013-07-16 14:02 ` Michael Roth
0 siblings, 2 replies; 3+ messages in thread
From: Saptarshi Sen @ 2013-07-16 1:27 UTC (permalink / raw)
To: qemu-devel, qemu-discuss
[-- Attachment #1: Type: text/plain, Size: 487 bytes --]
Hi,
Is it possible to use fixed array data structures for use through the
qmp-interface.
My aim is to monitor IDE level activity in terms of sectors being
accessed. So
I plan to have a fixed size buffer. But I find no way of doing so when I
use the
qapi-schema.json.
I think the qmp -interface uses linked lists as a replacement for array
type structures.
Can anybody clarify my doubt and whether is it possible to use arrays as
in my case.
Regards
Saptarshi Sen
[-- Attachment #2: Type: text/html, Size: 651 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] ARRAYS :QMP Declaration
2013-07-16 1:27 [Qemu-devel] ARRAYS :QMP Declaration Saptarshi Sen
@ 2013-07-16 13:30 ` Luiz Capitulino
2013-07-16 14:02 ` Michael Roth
1 sibling, 0 replies; 3+ messages in thread
From: Luiz Capitulino @ 2013-07-16 13:30 UTC (permalink / raw)
To: Saptarshi Sen; +Cc: qemu-devel, qemu-discuss
On Tue, 16 Jul 2013 09:27:27 +0800
Saptarshi Sen <saptarshi.mrg@gmail.com> wrote:
> Hi,
>
> Is it possible to use fixed array data structures for use through the
> qmp-interface.
>
> My aim is to monitor IDE level activity in terms of sectors being
> accessed. So
> I plan to have a fixed size buffer. But I find no way of doing so when I
> use the
> qapi-schema.json.
>
> I think the qmp -interface uses linked lists as a replacement for array
> type structures.
Yes, what JSON calls an array is actually a list. Why can't you use that?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] ARRAYS :QMP Declaration
2013-07-16 1:27 [Qemu-devel] ARRAYS :QMP Declaration Saptarshi Sen
2013-07-16 13:30 ` Luiz Capitulino
@ 2013-07-16 14:02 ` Michael Roth
1 sibling, 0 replies; 3+ messages in thread
From: Michael Roth @ 2013-07-16 14:02 UTC (permalink / raw)
To: Saptarshi Sen, qemu-devel, qemu-discuss
Quoting Saptarshi Sen (2013-07-15 20:27:27)
> Hi,
>
> Is it possible to use fixed array data structures for use through the
> qmp-interface.
>
> My aim is to monitor IDE level activity in terms of sectors being
> accessed. So
> I plan to have a fixed size buffer. But I find no way of doing so when
> I use the
> qapi-schema.json.
> I think the qmp -interface uses linked lists as a replacement for array
> type structures.
>
> Can anybody clarify my doubt and whether is it possible to use arrays
> as in my case.
Not currently, though there is a plan to support it, likely in 1.7.
You can have your implementation map the buffer to a linked list type before
sending a response though. It's not particularly efficient... but then again
how big is this buffer gonna be? capacity/sector_size? If so I don't think
that's realistic over QMP. A list of active sector numbers might actually
work better. That could still be done more efficiently using arrays if we
supported them currently, but in practice I don't think the extra overhead
would be that much worse (though I'm assuming here that the number of sectors
being concurrently accessed would be relatively small)
>
> Regards
> Saptarshi Sen
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-07-16 14:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-16 1:27 [Qemu-devel] ARRAYS :QMP Declaration Saptarshi Sen
2013-07-16 13:30 ` Luiz Capitulino
2013-07-16 14:02 ` Michael Roth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).