From: xiezhide <xiezhide@huawei.com>
To: qemu-devel@nongnu.org
Cc: groug@kaod.org, aneesh.kumar@linux.vnet.ibm.com,
eblake@redhat.com, armbru@redhat.com, berto@igalia.com,
zengcanfu@huawei.com, jinxuefeng@huawei.com,
chenhui.rtos@huawei.com
Subject: [Qemu-devel] [PATCH v5 0/6] fsdev-throttle-qmp: qmp interface for fsdev io throttling
Date: Fri, 16 Nov 2018 15:58:36 +0800 [thread overview]
Message-ID: <cover.1542384802.git.xiezhide@huawei.com> (raw)
This patches provide qmp interface to query/set io throttle parameters of a fsdev.
Some of patches also refactor the code and structure that was present in block and fsdev files.
xiezhide (6):
fsdev-throttle-qmp: factor out throttle code to reuse code
fsdev-throttle-qmp: Rename the ThrottleLimits member names
fsdev-throttle-qmp: Rewrite BlockIOThrottle with ThrottleLimits as its
base class
fsdev-throttle-qmp: Move ThrottleLimits into a new file for future
reuse
fsdev-throttle-qmp: qmp interface for fsdev io throttling
fsdev-throttle-qmp: hmp interface for fsdev io throttling
Makefile | 18 ++++
Makefile.objs | 8 ++
block/throttle.c | 6 +-
blockdev.c | 45 +-------
fsdev/qemu-fsdev-dummy.c | 11 ++
fsdev/qemu-fsdev-throttle.c | 142 +++++++++++++++---------
fsdev/qemu-fsdev-throttle.h | 6 +-
fsdev/qemu-fsdev.c | 29 +++++
hmp-commands-info.hx | 15 +++
hmp-commands.hx | 15 +++
hmp.c | 81 ++++++++++++--
hmp.h | 4 +
include/qemu/throttle-options.h | 2 +
include/qemu/throttle.h | 4 +-
include/qemu/typedefs.h | 1 +
qapi/block-core.json | 122 +--------------------
qapi/fsdev.json | 96 +++++++++++++++++
qapi/qapi-schema.json | 2 +
qapi/tlimits.json | 53 +++++++++
qmp.c | 13 +++
util/throttle.c | 231 ++++++++++++++++++++++++++--------------
21 files changed, 598 insertions(+), 306 deletions(-)
create mode 100644 qapi/fsdev.json
create mode 100644 qapi/tlimits.json
v0 -> v1:
Addressed comments from Eric Blake and Greg Kurz.
Fix patch corrupt issue due to email client change the patch format with copy-to-paster
Break patch to patches
v1 -> v2:
Addressed comments from Greg Kurz.
send patch with outlook,patch corrupted, resend with git send-email
v2 -> v3:
Addressed comments from Eric Blake.
split patch1 into two patches
v3 -> v4:
Fix issue cause test failed on centos and fedora
v4 -> v5:
Addressed comments from Eric Blake.
split patch3 into three patches
--
1.8.3.1
next reply other threads:[~2018-11-16 8:04 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-16 7:58 xiezhide [this message]
2018-11-16 7:59 ` [Qemu-devel] [PATCH v5 1/6] fsdev-throttle-qmp: factor out throttle code to reuse code xiezhide
2018-11-22 14:46 ` Greg Kurz
2018-11-23 6:42 ` xiezhide
2018-11-16 7:59 ` [Qemu-devel] [PATCH v5 2/6] fsdev-throttle-qmp: Rename the ThrottleLimits member names xiezhide
2018-11-28 9:25 ` Markus Armbruster
2018-11-28 13:09 ` Eric Blake
2018-11-29 7:23 ` xiezhide
2018-11-29 8:59 ` Markus Armbruster
2018-11-30 1:39 ` xiezhide
2018-11-29 7:10 ` xiezhide
2018-11-16 7:59 ` [Qemu-devel] [PATCH v5 3/6] fsdev-throttle-qmp: Rewrite BlockIOThrottle with ThrottleLimits as its base class xiezhide
2018-11-16 8:00 ` [Qemu-devel] [PATCH v5 4/6] fsdev-throttle-qmp: Move ThrottleLimits into a new file for future reuse xiezhide
2018-11-16 8:00 ` [Qemu-devel] [PATCH v5 5/6] fsdev-throttle-qmp: qmp interface for fsdev io throttling xiezhide
2018-11-16 8:00 ` [Qemu-devel] [PATCH v5 6/6] fsdev-throttle-qmp: hmp " xiezhide
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1542384802.git.xiezhide@huawei.com \
--to=xiezhide@huawei.com \
--cc=aneesh.kumar@linux.vnet.ibm.com \
--cc=armbru@redhat.com \
--cc=berto@igalia.com \
--cc=chenhui.rtos@huawei.com \
--cc=eblake@redhat.com \
--cc=groug@kaod.org \
--cc=jinxuefeng@huawei.com \
--cc=qemu-devel@nongnu.org \
--cc=zengcanfu@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).