All of lore.kernel.org
 help / color / mirror / Atom feed
* Maximum QMP reply size
@ 2022-09-06 19:38 John Snow
  2022-09-06 20:29 ` Peter Maydell
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: John Snow @ 2022-09-06 19:38 UTC (permalink / raw)
  To: Markus Armbruster; +Cc: Eric Blake, qemu-devel

Hi, I suspect I have asked this before, but I didn't write it down in
a comment, so I forget my justification...

In the QMP lib, we need to set a buffering limit for how big a QMP
message can be -- In practice, I found that the largest possible
response was the QAPI schema reply, and I set the code to this:

    # Maximum allowable size of read buffer
    _limit = (64 * 1024)

However, I didn't document if this was a reasonable limit or just a
"worksforme" one. I assume that there's no hard limit for the protocol
or the implementation thereof in QEMU. Is there any kind of value here
that would be more sensible than another?

I'm worried that if replies get bigger in the future (possibly in some
degenerate case I am presently unaware of) that the library default
will become nonsensical.

Any pointers/tips?

--js



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-09-26 11:09 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-06 19:38 Maximum QMP reply size John Snow
2022-09-06 20:29 ` Peter Maydell
2022-09-15 15:21   ` Dr. David Alan Gilbert
2022-09-16 15:12     ` Peter Maydell
2022-09-16 15:36       ` Daniel P. Berrangé
2022-09-19  6:45         ` Markus Armbruster
2022-09-20  8:14           ` Daniel P. Berrangé
2022-09-20 15:52       ` Dr. David Alan Gilbert
2022-09-07  7:16 ` Daniel P. Berrangé
2022-09-07  7:57 ` Daniel P. Berrangé
2022-09-07 11:54 ` Markus Armbruster
2022-09-23 19:51   ` John Snow
2022-09-26  8:17     ` Daniel P. Berrangé
2022-09-26  8:08   ` Daniel P. Berrangé
2022-09-26 10:43     ` Markus Armbruster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.