[Top][All Lists]

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

[Qemu-devel] [PATCH 12/12] migration: report RCU quiescent states

From: Paolo Bonzini
Subject: [Qemu-devel] [PATCH 12/12] migration: report RCU quiescent states
Date: Wed, 15 May 2013 17:48:57 +0200

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 <address@hidden>
 migration.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/migration.c b/migration.c
index 866d68d..fb8b326 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"
@@ -510,6 +511,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)) {
             pending_size = qemu_savevm_state_pending(s->file, max_size);

reply via email to

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