qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 04/18] migration: introduce postcopy-only pendin


From: Vladimir Sementsov-Ogievskiy
Subject: Re: [Qemu-devel] [PATCH 04/18] migration: introduce postcopy-only pending
Date: Mon, 21 Nov 2016 14:05:49 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

04.11.2016 15:46, Juan Quintela wrote:
Vladimir Sementsov-Ogievskiy <address@hidden> wrote:
There would be savevm states (dirty-bitmap) which can migrate only in
postcopy stage. The corresponding pending is introduced here.

Signed-off-by: Vladimir Sementsov-Ogievskiy <address@hidden>
---
  include/migration/vmstate.h |  5 +++--
  include/sysemu/sysemu.h     |  5 +++--
  migration/block.c           |  7 ++++---
  migration/migration.c       | 15 ++++++++-------
  migration/ram.c             |  9 +++++----
  migration/savevm.c          | 12 +++++++-----
  migration/trace-events      |  2 +-
  7 files changed, 31 insertions(+), 24 deletions(-)

diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h
index 5c30ef7..dc656be 100644
--- a/include/migration/vmstate.h
+++ b/include/migration/vmstate.h
@@ -58,8 +58,9 @@ typedef struct SaveVMHandlers {
      /* This runs outside the iothread lock!  */
      int (*save_live_setup)(QEMUFile *f, void *opaque);
      void (*save_live_pending)(QEMUFile *f, void *opaque, uint64_t max_size,
-                              uint64_t *non_postcopiable_pending,
-                              uint64_t *postcopiable_pending);
+                              uint64_t *res_precopy_only,
+                              uint64_t *res_compatible,
+                              uint64_t *res_postcopy_only);
Ouch, we really need to move to use an struct here :p

But ugliness was already here.

BTW, with only this patch, it is not clear to me what res_compatible mean

compatible mean data, which may be sent in both precopy/postcopy mode


@@ -1133,7 +1135,7 @@ void qemu_savevm_state_pending(QEMUFile *f, uint64_t 
max_size,
              }
          }
          se->ops->save_live_pending(f, se->opaque, max_size,
-                                   res_non_postcopiable, res_postcopiable);
+                res_precopy_only, res_compatible, res_postcopy_only);
Indentation is wrong.


--
Best regards,
Vladimir




reply via email to

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