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

login
register
mail settings
Submitter Lei Li
Date July 25, 2013, 8:18 p.m.
Message ID <1374783499-2550-9-git-send-email-lilei@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/261953/
State New
Headers show

Comments

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

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;
     }