From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsdOP-0006Dq-Ef for qemu-devel@nongnu.org; Fri, 28 Jun 2013 14:27:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsdON-0000Rk-Ez for qemu-devel@nongnu.org; Fri, 28 Jun 2013 14:27:33 -0400 Received: from mail-ee0-x233.google.com ([2a00:1450:4013:c00::233]:39434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsdON-0000Rb-5w for qemu-devel@nongnu.org; Fri, 28 Jun 2013 14:27:31 -0400 Received: by mail-ee0-f51.google.com with SMTP id e52so1174215eek.38 for ; Fri, 28 Jun 2013 11:27:30 -0700 (PDT) Received: from playground.lan (net-37-116-217-184.cust.dsl.vodafone.it. [37.116.217.184]) by mx.google.com with ESMTPSA id o5sm12035344eef.5.2013.06.28.11.27.28 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 28 Jun 2013 11:27:29 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 28 Jun 2013 20:26:36 +0200 Message-Id: <1372444009-11544-18-git-send-email-pbonzini@redhat.com> In-Reply-To: <1372444009-11544-1-git-send-email-pbonzini@redhat.com> References: <1372444009-11544-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 17/30] migration: report RCU quiescent states List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The migration thread polls s->state periodically, it does not use a mutex or condition variable, so it has to report quiescent states manually. Signed-off-by: Paolo Bonzini --- migration.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migration.c b/migration.c index 83f5691..28010dc 100644 --- a/migration.c +++ b/migration.c @@ -22,6 +22,7 @@ #include "qemu/sockets.h" #include "migration/block.h" #include "qemu/thread.h" +#include "qemu/rcu.h" #include "qmp-commands.h" #include "trace.h" @@ -508,6 +509,7 @@ static void *migration_thread(void *opaque) int64_t current_time; uint64_t pending_size; + rcu_quiescent_state(); if (!qemu_file_rate_limit(s->file)) { DPRINTF("iterate\n"); pending_size = qemu_savevm_state_pending(s->file, max_size); -- 1.8.1.4