qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert (git)" <dgilbert@redhat.com>
To: qemu-devel@nongnu.org, quintela@redhat.com,
	eric.auger@redhat.com, richardw.yang@linux.intel.com
Cc: peterx@redhat.com
Subject: [PULL 13/21] migration/postcopy: mis->have_listen_thread check will never be touched
Date: Fri, 11 Oct 2019 20:16:38 +0100	[thread overview]
Message-ID: <20191011191646.226814-14-dgilbert@redhat.com> (raw)
In-Reply-To: <20191011191646.226814-1-dgilbert@redhat.com>

From: Wei Yang <richardw.yang@linux.intel.com>

If mis->have_listen_thread is true, this means current PostcopyState
must be LISTENING or RUNNING. While the check at the beginning of the
function makes sure the state transaction happens when its previous
PostcopyState is ADVISE or DISCARD.

This means we would never touch this check.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Message-Id: <20191006000249.29926-2-richardw.yang@linux.intel.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
---
 migration/savevm.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/migration/savevm.c b/migration/savevm.c
index 241c5dd097..c62687afef 100644
--- a/migration/savevm.c
+++ b/migration/savevm.c
@@ -1878,11 +1878,6 @@ static int loadvm_postcopy_handle_listen(MigrationIncomingState *mis)
         return -1;
     }
 
-    if (mis->have_listen_thread) {
-        error_report("CMD_POSTCOPY_RAM_LISTEN already has a listen thread");
-        return -1;
-    }
-
     mis->have_listen_thread = true;
     /* Start up the listening thread and wait for it to signal ready */
     qemu_sem_init(&mis->listen_thread_sem, 0);
-- 
2.23.0



  parent reply	other threads:[~2019-10-11 19:36 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-11 19:16 [PULL 00/21] migration queue Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 01/21] migration: use migration_is_active to represent active state Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 02/21] rcu: Add automatically released rcu_read_lock variants Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 03/21] migration: Fix missing rcu_read_unlock Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 04/21] migration: Use automatic rcu_read unlock in ram.c Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 05/21] migration: Use automatic rcu_read unlock in rdma.c Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 06/21] rcu: Use automatic rc_read unlock in core memory/exec code Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 07/21] migration: Don't try and recover return path in non-postcopy Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 08/21] migration/postcopy: allocate tmp_page in setup stage Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 09/21] migration/postcopy: map large zero page in postcopy_ram_incoming_setup() Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 10/21] migration/postcopy: fix typo in mark_postcopy_blocktime_begin's comment Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 11/21] migration: pass in_postcopy instead of check state again Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 12/21] migration: report SaveStateEntry id and name on failure Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` Dr. David Alan Gilbert (git) [this message]
2019-10-11 19:16 ` [PULL 14/21] migration/postcopy: postpone setting PostcopyState to END Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 15/21] migration/postcopy: rename postcopy_ram_enable_notify to postcopy_ram_incoming_setup Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 16/21] migration/postcopy: check PostcopyState before setting to POSTCOPY_INCOMING_RUNNING Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 17/21] migration/multifd: fix a typo in comment of multifd_recv_unfill_packet() Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 18/21] migration/multifd: use pages->allocated instead of the static max Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 19/21] migration/multifd: initialize packet->magic/version once at setup stage Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 20/21] migration/multifd: pages->used would be cleared when attach to multifd_send_state Dr. David Alan Gilbert (git)
2019-10-11 19:16 ` [PULL 21/21] migration: Support gtree migration Dr. David Alan Gilbert (git)
2019-10-14 16:08 ` [PULL 00/21] migration queue Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191011191646.226814-14-dgilbert@redhat.com \
    --to=dgilbert@redhat.com \
    --cc=eric.auger@redhat.com \
    --cc=peterx@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.com \
    --cc=richardw.yang@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).