qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 06/12] arch_init: add save_local_setup to savevm


From: Michael R. Hines
Subject: Re: [Qemu-devel] [PATCH 06/12] arch_init: add save_local_setup to savevm_ram_handlers
Date: Fri, 02 Aug 2013 15:43:11 -0400
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5

On 07/25/2013 04:18 PM, Lei Li wrote:
Signed-off-by: Lei Li <address@hidden>
---
  arch_init.c                 |    1 +
  include/migration/vmstate.h |    2 ++
  2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch_init.c b/arch_init.c
index 7eeb52f..5c25005 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -973,6 +973,7 @@ SaveVMHandlers savevm_ram_handlers = {
      .save_live_iterate = ram_save_iterate,
      .save_live_complete = ram_save_complete,
      .save_live_pending = ram_save_pending,
+    .save_local_setup = ram_save_local,
      .load_state = ram_load,
      .cancel = ram_migration_cancel,
  };
diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index acf847b..c534254 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -53,6 +53,8 @@ typedef struct SaveVMHandlers {
      int (*save_live_setup)(QEMUFile *f, void *opaque);
      uint64_t (*save_live_pending)(QEMUFile *f, void *opaque, uint64_t 
max_size);

+    int (*save_local_setup)(QEMUFile *f, void *opaque);
+
      LoadStateHandler *load_state;
  } SaveVMHandlers;


save_page() should be good enough for you - it has more parameters too .... see last email....

- Michael





reply via email to

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