All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Alberto Garcia <berto@igalia.com>, qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, Max Reitz <mreitz@redhat.com>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	qemu-block@nongnu.org, Markus Armbruster <armbru@redhat.com>
Subject: Re: [Qemu-devel] [PATCH v2 10/17] qapi: Add burst length parameters to block_set_io_throttle
Date: Mon, 22 Feb 2016 09:41:27 -0700	[thread overview]
Message-ID: <56CB3A37.7070408@redhat.com> (raw)
In-Reply-To: <9d9251ff6fa1eb481ee57965bf2e6161649534e8.1455788710.git.berto@igalia.com>

[-- Attachment #1: Type: text/plain, Size: 2171 bytes --]

On 02/18/2016 03:27 AM, Alberto Garcia wrote:
> This patch adds the new bps_*_max_length and iops_*_max_length
> parameters to the block_set_io_throttle command.
> 
> Signed-off-by: Alberto Garcia <berto@igalia.com>
> ---
>  blockdev.c           | 31 +++++++++++++++++++++++++++++++
>  hmp.c                | 12 ++++++++++++
>  qapi/block-core.json | 51 +++++++++++++++++++++++++++++++++++++++++++++------
>  qmp-commands.hx      | 25 ++++++++++++++++---------
>  4 files changed, 104 insertions(+), 15 deletions(-)
> 
> diff --git a/blockdev.c b/blockdev.c
> index e8871fc..a5523ec 100644
> --- a/blockdev.c
> +++ b/blockdev.c
> @@ -2590,6 +2590,18 @@ void qmp_block_set_io_throttle(const char *device, int64_t bps, int64_t bps_rd,
>                                 int64_t iops_rd_max,
>                                 bool has_iops_wr_max,
>                                 int64_t iops_wr_max,
> +                               bool has_bps_max_length,
> +                               int64_t bps_max_length,
> +                               bool has_bps_rd_max_length,
> +                               int64_t bps_rd_max_length,
> +                               bool has_bps_wr_max_length,
> +                               int64_t bps_wr_max_length,
> +                               bool has_iops_max_length,
> +                               int64_t iops_max_length,
> +                               bool has_iops_rd_max_length,
> +                               int64_t iops_rd_max_length,
> +                               bool has_iops_wr_max_length,
> +                               int64_t iops_wr_max_length,
>                                 bool has_iops_size,
>                                 int64_t iops_size,
>                                 bool has_group,

Not a problem with this patch, but your argument list is getting
painfully long; so we really want to simplify this once my boxed
parameters for commands lands:
https://lists.gnu.org/archive/html/qemu-devel/2015-12/msg04394.html


-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

  reply	other threads:[~2016-02-22 16:41 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-18 10:26 [Qemu-devel] [PATCH v2 00/17] throttle: Allow I/O bursts for a user-defined period of time Alberto Garcia
2016-02-18 10:26 ` [Qemu-devel] [PATCH v2 01/17] throttle: Make throttle_compute_timer() static Alberto Garcia
2016-02-18 10:26 ` [Qemu-devel] [PATCH v2 02/17] throttle: Make throttle_conflicting() set errp Alberto Garcia
2016-02-18 10:26 ` [Qemu-devel] [PATCH v2 03/17] throttle: Make throttle_max_is_missing_limit() " Alberto Garcia
2016-02-18 10:26 ` [Qemu-devel] [PATCH v2 04/17] throttle: Make throttle_is_valid() " Alberto Garcia
2016-02-18 10:26 ` [Qemu-devel] [PATCH v2 05/17] throttle: Set always an average value when setting a maximum value Alberto Garcia
2016-02-18 10:26 ` [Qemu-devel] [PATCH v2 06/17] throttle: Merge all functions that check the configuration into one Alberto Garcia
2016-02-18 10:27 ` [Qemu-devel] [PATCH v2 07/17] throttle: Use throttle_config_init() to initialize ThrottleConfig Alberto Garcia
2016-02-18 10:27 ` [Qemu-devel] [PATCH v2 08/17] throttle: Add support for burst periods Alberto Garcia
2016-02-18 10:27 ` [Qemu-devel] [PATCH v2 09/17] throttle: Add command-line settings to define the " Alberto Garcia
2016-02-18 10:27 ` [Qemu-devel] [PATCH v2 10/17] qapi: Add burst length parameters to block_set_io_throttle Alberto Garcia
2016-02-22 16:41   ` Eric Blake [this message]
2016-02-23  8:26     ` Alberto Garcia
2016-02-18 10:27 ` [Qemu-devel] [PATCH v2 11/17] qapi: Add burst length fields to BlockDeviceInfo Alberto Garcia
2016-02-18 10:27 ` [Qemu-devel] [PATCH v2 12/17] throttle: Check that burst_level leaks correctly Alberto Garcia
2016-02-18 10:27 ` [Qemu-devel] [PATCH v2 13/17] throttle: Test throttle_compute_wait() during bursts Alberto Garcia
2016-02-18 10:27 ` [Qemu-devel] [PATCH v2 14/17] qemu-iotests: Extend iotest 093 to test bursts Alberto Garcia
2016-02-18 10:27 ` [Qemu-devel] [PATCH v2 15/17] qapi: Correct the name of the iops_rd parameter Alberto Garcia
2016-02-18 10:27 ` [Qemu-devel] [PATCH v2 16/17] docs: Document the throttling infrastructure Alberto Garcia
2016-02-18 10:27 ` [Qemu-devel] [PATCH v2 17/17] MAINTAINERS: Add myself as maintainer of the throttling code Alberto Garcia
2016-02-22 13:47 ` [Qemu-devel] [PATCH v2 00/17] throttle: Allow I/O bursts for a user-defined period of time Kevin Wolf

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=56CB3A37.7070408@redhat.com \
    --to=eblake@redhat.com \
    --cc=armbru@redhat.com \
    --cc=berto@igalia.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.