qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Adding new migration-parameters - any easier way?


From: zhanghailiang
Subject: Re: [Qemu-devel] Adding new migration-parameters - any easier way?
Date: Tue, 23 Jun 2015 16:03:20 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Thunderbird/31.1.1

On 2015/6/23 15:50, Markus Armbruster wrote:
zhanghailiang <address@hidden> writes:

On 2015/6/19 16:11, Markus Armbruster wrote:
[...]
To avoid the ugliness, we could change the QAPI generator.  Currently,

      { 'command': 'migrate-set-parameters',
        'data': 'MigrationParameters' }

generates the same interface as when you inline MigrationParameters,
namely

      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,
                                      ... more ...
                                      Error **errp)

It could instead generate

      void qmp_migrate_set_parameters(MigrationParameters *parms,
                                      Error **errp)

No change to the wire protocol.  Fairly big, but relatively mechanical
change to the handler functions.  I'd be willing to give it a shot and
see how it turns out, but I can't do it for 2.4, sorry.


Great, that would be fine~ Thanks.

I think I can give it a try myself some time in the 2.5 cycle.


OK, thanks~ :)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]