[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC PATCH 12/14] migration: report RCU quiescent states
From: |
Mike Day |
Subject: |
[Qemu-devel] [RFC PATCH 12/14] migration: report RCU quiescent states |
Date: |
Wed, 14 Aug 2013 11:50:48 -0400 |
From: Paolo Bonzini <address@hidden>
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>
Reviewed-by: Mike Day <address@hidden>
---
migration.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/migration.c b/migration.c
index 1402fa7..9d0950e 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"
@@ -563,6 +564,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.3.1
- [Qemu-devel] [RFC PATCH 02/14] rcu: add rcu library, (continued)
- [Qemu-devel] [RFC PATCH 02/14] rcu: add rcu library, Mike Day, 2013/08/14
- [Qemu-devel] [RFC PATCH 03/14] fix #include directive for rcu header, Mike Day, 2013/08/14
- [Qemu-devel] [RFC PATCH 04/14] qemu-thread: register threads with RCU, Mike Day, 2013/08/14
- [Qemu-devel] [RFC PATCH 05/14] rcu: add call_rcu, Mike Day, 2013/08/14
- [Qemu-devel] [RFC PATCH 06/14] rcu: add rcutorture, Mike Day, 2013/08/14
- [Qemu-devel] [RFC PATCH 07/14] rcu: allow nested calls to rcu_thread_offline/rcu_thread_online, Mike Day, 2013/08/14
- [Qemu-devel] [RFC PATCH 09/14] event loop: report RCU quiescent states, Mike Day, 2013/08/14
- [Qemu-devel] [RFC PATCH 08/14] qemu-thread: report RCU quiescent states, Mike Day, 2013/08/14
- [Qemu-devel] [RFC PATCH 10/14] cpus: report RCU quiescent states, Mike Day, 2013/08/14
- [Qemu-devel] [RFC PATCH 11/14] block: report RCU quiescent states, Mike Day, 2013/08/14
- [Qemu-devel] [RFC PATCH 12/14] migration: report RCU quiescent states,
Mike Day <=
- [Qemu-devel] [PATCH 13/14] include osdep.h for definition of glue(a, b), Mike Day, 2013/08/14
- [Qemu-devel] [PATCH 14/14] fix pointer reference to rcu_assign_pointer, Mike Day, 2013/08/14