qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 5/5] qmp: create QMP implementation of loadvm co


From: Denis V. Lunev
Subject: Re: [Qemu-devel] [PATCH 5/5] qmp: create QMP implementation of loadvm command
Date: Tue, 1 Dec 2015 18:19:33 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 11/18/2015 02:41 PM, Juan Quintela wrote:
"Denis V. Lunev" <address@hidden> wrote:
Signed-off-by: Denis V. Lunev <address@hidden>
CC: Juan Quintela <address@hidden>
CC: Amit Shah <address@hidden>
CC: Markus Armbruster <address@hidden>
CC: Eric Blake <address@hidden>
---
  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



reply via email to

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