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: Markus Armbruster
Subject: Re: [Qemu-devel] Adding new migration-parameters - any easier way?
Date: Tue, 23 Jun 2015 09:50:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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.



reply via email to

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