qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Kevin Wolf <kwolf@redhat.com>
To: Alberto Garcia <berto@igalia.com>
Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org,
	Max Reitz <mreitz@redhat.com>
Subject: Re: [PATCH] iotests: Drop deprecated 'props' from object-add
Date: Fri, 19 Feb 2021 13:21:49 +0100	[thread overview]
Message-ID: <20210219122149.GC5750@merkur.fritz.box> (raw)
In-Reply-To: <20210216171653.6543-1-berto@igalia.com>

Am 16.02.2021 um 18:16 hat Alberto Garcia geschrieben:
> Signed-off-by: Alberto Garcia <berto@igalia.com>

> diff --git a/tests/qemu-iotests/235 b/tests/qemu-iotests/235
> index 20d16dbf38..f5c73b9c17 100755
> --- a/tests/qemu-iotests/235
> +++ b/tests/qemu-iotests/235
> @@ -57,7 +57,7 @@ vm.add_args('-drive', 'id=src,file=' + disk)
>  vm.launch()
>  
>  log(vm.qmp('object-add', qom_type='throttle-group', id='tg0',
> -           props={ 'x-bps-total': size }))
> +           x_bps_total=size))

x-bps-total isn't a stable interface, I'd prefer to use limits.

My patch from November [1] had this:

diff --git a/tests/qemu-iotests/235 b/tests/qemu-iotests/235
index d1b10ac36b..2765561ada 100755
--- a/tests/qemu-iotests/235
+++ b/tests/qemu-iotests/235
@@ -56,7 +56,7 @@ vm.add_args('-drive', 'id=src,file=' + disk)
 vm.launch()

 log(vm.qmp('object-add', qom_type='throttle-group', id='tg0',
-           props={ 'x-bps-total': size }))
+           limits={ 'bps-total': size }))

 log(vm.qmp('blockdev-add',
            **{ 'node-name': 'target',

The same happens in other hunks in the patch.

Actually, I believe I can even merge my patch to drop 'props' while
the rest of the object-add QAPIfication series isn't ready yet. Maybe I
should just do that.

Kevin

[1] https://lists.gnu.org/archive/html/qemu-block/2020-11/msg00802.html



  parent reply	other threads:[~2021-02-19 12:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16 17:16 [PATCH] iotests: Drop deprecated 'props' from object-add Alberto Garcia
2021-02-19 12:04 ` Max Reitz
2021-02-19 12:35   ` Alberto Garcia
2021-02-19 12:21 ` Kevin Wolf [this message]
2021-02-19 12:45   ` Alberto Garcia
2021-02-19 13:26     ` 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=20210219122149.GC5750@merkur.fritz.box \
    --to=kwolf@redhat.com \
    --cc=berto@igalia.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-block@nongnu.org \
    --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 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).