Regarding wire protocol this would of course be very wasteful. If it's used
between the guest and host except for the translation overhead, which is minimal
I think (except for a copy-paste of a large amount of data - I'm not familiar
enough with XML-RPC but I guess it has some way to pass binary buffers
unmodified?),
I don't have a particular objection, other then hoping we consider alternatives
(there
are a few).
Regarding one-off protocols in general, I agree it creates code duplication
and should be avoided. In that respect I prefer mechanisems that produce
implementations from a declarative description. But I would prefer a binary
protocol, possibly a convertion of the existing spice protocol to declarative
form (like Alex did to the core spice protocols, see spice.proto and
spice1.proto,
http://cgit.freedesktop.org/spice/spice/tree/spice.proto
Of course there are many implementations of this outside of spice, like protocol
buffers). I also don't think a one-off is necessarily a bad thing.