Received: from eggs.gnu.org ([2001:4830:134:3::10]:54707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dTT99-0004Fi-PW for qemu-devel@nongnu.org; Fri, 07 Jul 2017 09:18:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dTT94-0005F0-QQ for qemu-devel@nongnu.org; Fri, 07 Jul 2017 09:18:11 -0400 Received: from lhrrgout.huawei.com ([194.213.3.17]:16986) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1dTT94-0005Da-GF for qemu-devel@nongnu.org; Fri, 07 Jul 2017 09:18:06 -0400 References: <1499182263-19139-1-git-send-email-pradeep.jagadeesh@huawei.com> <87podcrcxu.fsf@dusky.pond.sub.org> From: Pradeep Jagadeesh Message-ID: <98d8c4a6-4032-e8e3-de52-9761e05b02a4@huawei.com> Date: Fri, 7 Jul 2017 15:16:52 +0200 MIME-Version: 1.0 In-Reply-To: <87podcrcxu.fsf@dusky.pond.sub.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v7 0/6] fsdev: qmp interface for io throttling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , Pradeep Jagadeesh Cc: eric blake , greg kurz , alberto garcia , qemu-devel@nongnu.org, "Dr. David Alan Gilbert" , jani kokkonen On 7/7/2017 8:14 AM, Markus Armbruster wrote: > Pradeep Jagadeesh writes: > >> These patches provide the qmp interface, to query the io throttle >> status of the all fsdev devices that are present in a vm. >> also, it provides an interface to set the io throttle parameters of a >> fsdev to a required value. some of the patches also remove the duplicate >> code that was present in block and fsdev files. >> >> Pradeep Jagadeesh (6): >> throttle: factor out duplicate code >> qmp: Create IOThrottle structure >> throttle: move out function to reuse the code >> hmp: create a throttle initialization function for code reusability >> fsdev: hmp interface for throttling >> fsdev: QMP interface for throttling >> >> Makefile | 4 ++ >> blockdev.c | 97 ++------------------------------- >> fsdev/qemu-fsdev-dummy.c | 10 ++++ >> fsdev/qemu-fsdev-throttle.c | 118 ++++++++++++++++++++++++++-------------- >> fsdev/qemu-fsdev-throttle.h | 13 +++++ >> fsdev/qemu-fsdev.c | 37 +++++++++++++ >> hmp-commands-info.hx | 18 ++++++ >> hmp-commands.hx | 19 +++++++ >> hmp.c | 81 +++++++++++++++++++++++++-- >> hmp.h | 4 ++ >> include/qemu/throttle-options.h | 7 +++ >> include/qemu/throttle.h | 4 +- >> include/qemu/typedefs.h | 1 + >> monitor.c | 5 ++ >> qapi-schema.json | 3 + >> qapi/block-core.json | 76 +------------------------- >> qapi/fsdev.json | 84 ++++++++++++++++++++++++++++ >> qapi/iothrottle.json | 88 ++++++++++++++++++++++++++++++ >> qmp.c | 14 +++++ >> util/throttle.c | 110 +++++++++++++++++++++++++++++++++++++ >> 20 files changed, 577 insertions(+), 216 deletions(-) >> create mode 100644 qapi/fsdev.json >> create mode 100644 qapi/iothrottle.json > > No test coverage? Not yet, I am yet to write the tests. I can do it only after I finish this work. -Pradeep >