On 08/07/2017 07:37 AM, Pradeep Jagadeesh wrote: > This patch enables qmp interfaces for the fsdev > devices. This provides two interfaces one > for querying info of all the fsdev devices. The second one > to set the IO limits for the required fsdev device. > > Signed-off-by: Pradeep Jagadeesh <pradeep.jagade...@huawei.com> > Reviewed-by: Greg Kurz <gr...@kaod.org> > Reviewed-by: Eric Blake <ebl...@redhat.com> > Reviewed-by: Alberto Garcia <be...@igalia.com> > --- > qapi/block-core.json | 76 ++------------------------------------------- > qapi/iothrottle.json | 88 > ++++++++++++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 91 insertions(+), 73 deletions(-) > create mode 100644 qapi/iothrottle.json
I'm wondering how much of this overlaps or even duplicates Manos' efforts on making throttling a separate filter BDS. > +++ b/qapi/iothrottle.json > @@ -0,0 +1,88 @@ > +# -*- Mode: Python -*- > + > +## > +# == QAPI IOThrottle definitions > +## > + > +## > +# @IOThrottle: > +# > +# A set of parameters describing IO throttling > +# > +# @id: The name or QOM path of the guest device (since: 2.8) > +# Since: 2.10 Also, we've missed freeze for 2.10; this refactoring now belongs in 2.11. > +## > +{ 'struct': 'IOThrottle', > + 'data': { '*id': 'str', 'bps': 'int', 'bps_rd': 'int', > + 'bps_wr': 'int', 'iops': 'int', 'iops_rd': 'int', 'iops_wr': > 'int', > + '*bps_max': 'int', '*bps_rd_max': 'int', > + '*bps_wr_max': 'int', '*iops_max': 'int', > + '*iops_rd_max': 'int', '*iops_wr_max': 'int', > + '*bps_max_length': 'int', '*bps_rd_max_length': 'int', > + '*bps_wr_max_length': 'int', '*iops_max_length': 'int', > + '*iops_rd_max_length': 'int', '*iops_wr_max_length': 'int', > + '*iops_size': 'int' } } > -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature