qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: QEMU Developer <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Migration ToDo list (a.k.a. Rant)
Date: Wed, 04 May 2016 16:30:42 +0200	[thread overview]
Message-ID: <87shxxevzh.fsf@emacs.mitica> (raw)
In-Reply-To: <5729FB57.60904@redhat.com> (Eric Blake's message of "Wed, 4 May 2016 07:38:31 -0600")

Eric Blake <eblake@redhat.com> wrote:
> On 05/04/2016 05:20 AM, Juan Quintela wrote:
>> - migration capabilities and parameters
>>   this is a mess.  Not, is worse than that.  I don't know who is to
>>   blame here, but something needs to be done:
>> 
>>      void qmp_migrate_set_parameters(bool has_compress_level,
>>                                 int64_t compress_level,
>>                                 bool has_compress_threads,
>>                                 int64_t compress_threads,
>>                                 bool has_decompress_threads,
>>                                 int64_t decompress_threads,
>>                                 bool has_x_cpu_throttle_initial,
>>                                 int64_t x_cpu_throttle_initial,
>>                                 bool has_x_cpu_throttle_increment,
>>                                 int64_t x_cpu_throttle_increment,
>>                                 bool has_multifd_threads,
>>                                 int64_t multifd_threads,
>>                                 Error **errp)
>
> I've got a QAPI patch in the pipeline that makes this MUCH simpler, by
> boxing everything through a single MigrationParameter* pointer rather
> than an exploded list of parameters.

NICE!!!

>>    migrate_set_capability
>>       Minor nickpit, if it only allow booleans,
>> "migrate_set_capability x-multifd",
>>       should be an equivalent of "migrate_set_capability x-multifd on"
>
> That's HMP - you can make HMP do whatever you want without breaking
> back-compat.

I would like to structure it as:  Use the other way, this is deprecated
and only here for backwards compatibility.

>>    migrate_set_cache_size
>>    migrate_set_downtime
>>    migrate_set_speed
>>       This three should be claimed obsolete, deprecated, whatever, and
>>       make it on top of next one
>
> Again, HMP can make this change easy, even if it has to call out to
> different QMP under the hood.

Yeap, but I preffer to have both consistent.


>> 
>>    Now to read the migration information:
>> 
>>      migrate_capabilities
>>        good
>>      migrate_parameters
>>        good
>
> Why we need two commands is beyond me - one command that lists
> everything (capabilities AND parameters) should be sufficient.

I don't care how we do it, but we need an easy way to be sure that when
we add a new parameter/capability we also list it.  Just now there are
things that we can't get back.

Later, Juan.

  reply	other threads:[~2016-05-04 14:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-04 11:20 [Qemu-devel] Migration ToDo list (a.k.a. Rant) Juan Quintela
2016-05-04 12:47 ` Dr. David Alan Gilbert
2016-05-04 16:35   ` Greg Kurz
2016-05-04 13:08 ` Denis V. Lunev
2016-05-04 13:38 ` Eric Blake
2016-05-04 14:30   ` Juan Quintela [this message]
2016-06-16  9:05     ` Markus Armbruster
2016-05-05  6:19 ` Hailiang Zhang
2016-05-05  8:01 ` Li, Liang Z

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=87shxxevzh.fsf@emacs.mitica \
    --to=quintela@redhat.com \
    --cc=eblake@redhat.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 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).