Anthony Liguori wrote:
Avi Kivity wrote:
Merging is a meaningless milestone since the protocol will not be
enabled. Since we'll miss 0.11 in reality we have 7-8 months before
the protocol can be used in production. IMO you're optimizing for
the short term, disregarding long-term maintenance, and disregarding
ease of implementation for users of the qemu monitor.
Here's an updated grammar.
One benefit of using our own grammar over just JSON-RPC that is line
based is that lines form discrete PDUs. If you wanted to implement a
JSON-RPC parser, you would have to be able to either invent your own
PDU transmission mechanism or rely on the JSON parser to determine
message boundaries. Since the later is likely to be a recursive
decent parser, this is difficult to work into an asynchronous client
library. The same is true for XML-RPC. With XML-RPC, you rely on
HTTP's Content-Length header to determine boundaries.