All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Pradeep Jagadeesh <pradeep.jagadeesh@huawei.com>
Cc: Pradeep Jagadeesh <pradeepkiruvale@gmail.com>,
	Eric Blake <eblake@redhat.com>, Greg Kurz <groug@kaod.org>,
	Jani Kokkonen <jani.kokkonen@huawei.com>,
	Alberto Garcia <berto@igalia.com>,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v0] fsdev: QMP interface for throttling
Date: Mon, 3 Apr 2017 11:59:12 +0100	[thread overview]
Message-ID: <20170403105912.GL2768@redhat.com> (raw)
In-Reply-To: <cf6a29f8-2dac-4246-8cd3-86790b52409b@huawei.com>

On Tue, Mar 21, 2017 at 10:25:31AM +0100, Pradeep Jagadeesh wrote:
> 
> On 3/20/2017 2:17 PM, Daniel P. Berrange wrote:
> > On Mon, Mar 20, 2017 at 09:07:20AM -0400, Pradeep Jagadeesh wrote:
> > 
> > > diff --git a/hmp-commands.hx b/hmp-commands.hx
> > > index 8819281..e4e3478 100644
> > > --- a/hmp-commands.hx
> > > +++ b/hmp-commands.hx
> > > @@ -1637,6 +1637,34 @@ ETEXI
> > >      },
> > > 
> > >  STEXI
> > > +@item 9p_passwd @var{device} @var{password}
> > > +@findex 9p_passwd
> > > +Set the encrypted device @var{device} password to @var{password}
> > > +ETEXI
> > > +
> > > +    {
> > > +        .name       = "fs9p_set_io_throttle",
> > > +        .args_type  = "device:B,bps:l,bps_rd:l,bps_wr:l,iops:l,iops_rd:l,iops_wr:l",
> > > +        .params     = "device bps bps_rd bps_wr iops iops_rd iops_wr",
> > > +        .help       = "change I/O throttle limits for a block drive",
> > > +        .cmd        = hmp_9pfs_set_io_throttle,
> > > +    },
> > > +
> > > +STEXI
> > > +@item fs9p_set_io_throttle @var{device} @var{bps} @var{bps_rd} @var{bps_wr} @var{iops} @var{iops_rd} @var{iops_wr}
> > > +@findex 9pfs_set_io_throttle
> > > +Change I/O throttle limits for a block drive to @var{bps} @var{bps_rd} @var{bps_wr} @var{iops} @var{iops_rd} @var{iops_wr}
> > > +ETEXI
> > > +
> > > +    {
> > > +        .name       = "set_password",
> > > +        .args_type  = "protocol:s,password:s,connected:s?",
> > > +        .params     = "protocol password action-if-connected",
> > > +        .help       = "set spice/vnc password",
> > > +        .cmd        = hmp_set_password,
> > > +    },
> > > +
> > > +STEXI
> > 
> > This looks all mangled wrt password related stuff
> I did not understand the usage of the password.
> Do we really need password here?.
> I just followed how is it done in block devices.

This is all just wrong - remove all these password related stuff.

> > > +##
> > > +# @fs9p_set_io_throttle:
> > > +#
> > > +# Change I/O limits for a 9p/fsdev device.
> > > +#
> > > +# Since QEMU 2.9, I/0 limits can be enabled on each  fsdev(9pfs) device
> > 
> > Is this supposed to be generic for any fsdev impl, or specific to the
> > 9p impl only ? Without knowing more, I'd expect us to really be designing
> > something generic, and not tied to just the 9p impl. IOW,  having '9p' in
> > the name of the QAPI commands feels wrong - use of 'fsdev' feels like the
> > better naming. Same applies to the HMP commands.
> Yes its for the fsdev. But other than 9p when the fsdev is used?
> I will rename 9p to fsdev.

The point is that this is a public API which needs long term support. We
thus need to consider the possibility that we'll have other usage of the
fsdev framework in future that is not related to 9p, even though it does
not exist today.

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://entangle-photo.org       -o-    http://search.cpan.org/~danberr/ :|

  reply	other threads:[~2017-04-03 10:59 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-20 13:07 [Qemu-devel] [PATCH v0] fsdev: QMP interface for throttling Pradeep Jagadeesh
2017-03-20 13:17 ` Daniel P. Berrange
2017-03-21  9:25   ` Pradeep Jagadeesh
2017-04-03 10:59     ` Daniel P. Berrange [this message]
2017-03-20 13:46 ` no-reply
2017-03-21  1:15 ` Eric Blake
2017-03-21  9:44   ` Pradeep Jagadeesh
2017-03-21 12:06     ` Greg Kurz
2017-03-23 12:07       ` Pradeep Jagadeesh
2017-03-21 14:38     ` Eric Blake
2017-03-21 13:38 ` Greg Kurz
2017-03-22  9:23   ` Pradeep Jagadeesh

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=20170403105912.GL2768@redhat.com \
    --to=berrange@redhat.com \
    --cc=berto@igalia.com \
    --cc=eblake@redhat.com \
    --cc=groug@kaod.org \
    --cc=jani.kokkonen@huawei.com \
    --cc=pradeep.jagadeesh@huawei.com \
    --cc=pradeepkiruvale@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /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.