qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 03/36] migration: Check that migration is active


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 03/36] migration: Check that migration is active before cancel it
Date: Mon, 17 Oct 2011 08:53:08 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13

On 10/11/2011 05:00 AM, Juan Quintela wrote:
Signed-off-by: Juan Quintela<address@hidden>

Reviewed-by: Anthony Liguori <address@hidden>

Regards,

Anthony Liguori

---
  migration.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/migration.c b/migration.c
index 7fd6c23..71b8aad 100644
--- a/migration.c
+++ b/migration.c
@@ -133,9 +133,9 @@ int do_migrate_cancel(Monitor *mon, const QDict *qdict, 
QObject **ret_data)
  {
      MigrationState *s = current_migration;

-    if (s)
+    if (s&&  s->get_status(s) == MIG_STATE_ACTIVE) {
          s->cancel(s);
-
+    }
      return 0;
  }





reply via email to

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