Received: from eggs.gnu.org ([2001:4830:134:3::10]:53697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3mSl-0001uo-G7 for qemu-devel@nongnu.org; Tue, 01 Dec 2015 10:03:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3mSh-0006E7-Bk for qemu-devel@nongnu.org; Tue, 01 Dec 2015 10:03:27 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3mSh-0006E3-79 for qemu-devel@nongnu.org; Tue, 01 Dec 2015 10:03:23 -0500 From: Markus Armbruster References: <1447687950-29350-1-git-send-email-den@openvz.org> <1447687950-29350-3-git-send-email-den@openvz.org> <87ziyd0wdm.fsf@blackfin.pond.sub.org> <87mvubmtef.fsf@emacs.mitica> <565DAEAB.6060104@openvz.org> Date: Tue, 01 Dec 2015 16:03:20 +0100 In-Reply-To: <565DAEAB.6060104@openvz.org> (Denis V. Lunev's message of "Tue, 1 Dec 2015 17:28:59 +0300") Message-ID: <87si3m8b47.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 2/5] qmp: create qmp_savevm command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Denis V. Lunev" Cc: Amit Shah , qemu-devel@nongnu.org, quintela@redhat.com "Denis V. Lunev" writes: > On 11/18/2015 02:36 PM, Juan Quintela wrote: >> Markus Armbruster wrote: >>> "Denis V. Lunev" writes: >>> >>>> Signed-off-by: Denis V. Lunev >>>> CC: Juan Quintela >>>> CC: Amit Shah >>>> CC: Markus Armbruster >>>> CC: Eric Blake >>>> --- >>>> migration/savevm.c | 5 +++++ >>>> qapi-schema.json | 13 +++++++++++++ >>>> qmp-commands.hx | 25 +++++++++++++++++++++++++ >>>> 3 files changed, 43 insertions(+) >>>> >>>> diff --git a/migration/savevm.c b/migration/savevm.c >>>> index f83ffd0..565b10a 100644 >>>> --- a/migration/savevm.c >>>> +++ b/migration/savevm.c >>>> @@ -2010,6 +2010,11 @@ void hmp_savevm(Monitor *mon, const QDict *qdict) >>>> } >>>> } >>>> +void qmp_savevm(bool has_name, const char *name, Error **errp) >>>> +{ >>>> + do_savevm(has_name ? name : NULL, errp); >>>> +} >>>> + >>> Please name do_savevm() qmp_savevm() and drop this wrapper. >>> >>> We're working on omitting has_FOO for pointer-valued FOO. >> Agreed. >> > > is there a tree with this stuff in or something I could be based on? > This series is simple enough to be written fast and be merged > early when the hard freeze will be done. > > Above stuff could have a way harder way due to the amount of > changes to be performed. I recommend not to base on our qapi work just for the has_FOO change. I mentioned it only because once it lands, the wrapper I want you to drop would become entirely pointless. Go ahead and get your patches in, and let us deal with cleaning up all has_FOO.