From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3mib-00078x-P2 for qemu-devel@nongnu.org; Tue, 01 Dec 2015 10:19:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a3miY-0003qm-ID for qemu-devel@nongnu.org; Tue, 01 Dec 2015 10:19:49 -0500 Received: from relay.parallels.com ([195.214.232.42]:42824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a3miY-0003qX-AH for qemu-devel@nongnu.org; Tue, 01 Dec 2015 10:19:46 -0500 References: <1447687950-29350-1-git-send-email-den@openvz.org> <1447687950-29350-6-git-send-email-den@openvz.org> <87a8qbmt5y.fsf@emacs.mitica> From: "Denis V. Lunev" Message-ID: <565DBA85.4000301@openvz.org> Date: Tue, 1 Dec 2015 18:19:33 +0300 MIME-Version: 1.0 In-Reply-To: <87a8qbmt5y.fsf@emacs.mitica> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 5/5] qmp: create QMP implementation of loadvm command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: quintela@redhat.com Cc: Amit Shah , qemu-devel@nongnu.org, Markus Armbruster On 11/18/2015 02:41 PM, Juan Quintela wrote: > "Denis V. Lunev" wrote: >> 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 | 23 +++++++++++++++++++++++ >> 3 files changed, 41 insertions(+) >> >> diff --git a/migration/savevm.c b/migration/savevm.c >> index 08c6c65..f67b5d9 100644 >> --- a/migration/savevm.c >> +++ b/migration/savevm.c >> @@ -2116,6 +2116,11 @@ int load_vmstate(const char *name, Error **errp) >> return 0; >> } >> >> +void qmp_loadvm(const char *name, Error **errp) >> +{ >> + load_vmstate(name, errp); >> +} >> + > As Markus suggested for the other functions, rename load_vmstate qmp_loadvm() > > Thanks, Juan. load_vmstate is actually 'int load_vmstate' and return code is checked in qemu_img.c Should I replace error code check there with a check to *errp != 0 or this would lead us into a problem with block level guys? Den