On Thu, Feb 03, 2022 at 07:38:08PM +0100, Paolo Bonzini wrote: > On 2/1/22 13:08, Daniel P. Berrangé wrote: > > I still feel like this is rather verbose, and should be simplified > > down to. > > > > { "return": { > > "vm": { > > "kvm": [ ... ] > > "provider-XYZ": [ ... ], > > ... > > } > > } > > My main qualm with this is that not just QEMU, but every layer above then > needs to either treat stats as a "dynamic" type unless they want to only > handle providers that they know. > > The main reason why I asked Mark to do all this work, was so that new stats > and stats providers could be added transparently, and only new *targets* > would need work all over the stack (but those are fewer, for example > blockdev/netdev/iothread).
Hmm, yes, i see what you mean. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|