Received: from eggs.gnu.org ([2001:4830:134:3::10]:57075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7IyD-0005N4-Ow for qemu-devel@nongnu.org; Tue, 23 Jun 2015 03:50:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z7Iy8-0001EM-V6 for qemu-devel@nongnu.org; Tue, 23 Jun 2015 03:50:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z7Iy8-0001E1-Q7 for qemu-devel@nongnu.org; Tue, 23 Jun 2015 03:50:08 -0400 From: Markus Armbruster References: <20150605095004.GB2139@work-vm> <55815000.8060300@huawei.com> <87d20st8vt.fsf@blackfin.pond.sub.org> <5588B9C8.9060800@huawei.com> Date: Tue, 23 Jun 2015 09:50:05 +0200 In-Reply-To: <5588B9C8.9060800@huawei.com> (zhanghailiang's message of "Tue, 23 Jun 2015 09:43:36 +0800") Message-ID: <877fquzwwi.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] Adding new migration-parameters - any easier way? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: zhanghailiang Cc: amit.shah@redhat.com, peter.huangpeng@huawei.com, qemu-devel@nongnu.org, "Dr. David Alan Gilbert" , quintela@redhat.com zhanghailiang 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.