Re: [Qemu-devel] [PATCH v4 4/7] block: convert ThrottleGroup to object with QOM

2017-08-10 Thread Alberto Garcia
On Wed 09 Aug 2017 12:07:31 PM CEST, Manos Pitsidianakis wrote: > +/* unfix buckets to check validity */ > +throttle_get_config(>ts, cfg); > +if (!throttle_is_valid(cfg, errp)) { > +return; > +} > +/* fix buckets again */ > +throttle_config(>ts, tg->clock_type,

[Qemu-devel] [PATCH v4 4/7] block: convert ThrottleGroup to object with QOM

2017-08-09 Thread Manos Pitsidianakis
ThrottleGroup is converted to an object. This will allow the future throttle block filter drive easy creation and configuration of throttle groups in QMP and cli. A new QAPI struct, ThrottleLimits, is introduced to provide a shared struct for all throttle configuration needs in QMP.