diff mbox

[08/12] savevm: adjust is_ram check in register_savevm_live()

Message ID 1374783499-2550-9-git-send-email-lilei@linux.vnet.ibm.com
State New
Headers show

Commit Message

Lei Li July 25, 2013, 8:18 p.m. UTC
Signed-off-by: Lei Li <lilei@linux.vnet.ibm.com>
---
 savevm.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/savevm.c b/savevm.c
index c183369..e826f64 100644
--- a/savevm.c
+++ b/savevm.c
@@ -1484,7 +1484,8 @@  int register_savevm_live(DeviceState *dev,
     se->vmsd = NULL;
     se->no_migrate = 0;
     /* if this is a live_savem then set is_ram */
-    if (ops->save_live_setup != NULL) {
+    if ((ops->save_live_setup != NULL)
+         || (ops->save_local_setup != NULL)) {
         se->is_ram = 1;
     }