aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2013-10-08 13:26:29 +0200
committerJuan Quintela <quintela@redhat.com>2014-01-13 14:04:54 +0100
commit5adca7ace9b80bf594e4c52c0d5b23573cba3639 (patch)
treead985e05fb8fbc46d4f1db7d4dadfcedf9a32f5c /include
parent52159192919469b424b54c167312e53d5a62d233 (diff)
downloadqemu-5adca7ace9b80bf594e4c52c0d5b23573cba3639.zip
qemu-5adca7ace9b80bf594e4c52c0d5b23573cba3639.tar.gz
qemu-5adca7ace9b80bf594e4c52c0d5b23573cba3639.tar.bz2
memory: use bit 2 for migration
For historical reasons it was bit 3. Once there, create a constant to know the number of clients. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/exec/memory.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/exec/memory.h b/include/exec/memory.h
index b8e76f4..d5e9d58 100644
--- a/include/exec/memory.h
+++ b/include/exec/memory.h
@@ -35,7 +35,8 @@ typedef struct MemoryRegionMmio MemoryRegionMmio;
#define DIRTY_MEMORY_VGA 0
#define DIRTY_MEMORY_CODE 1
-#define DIRTY_MEMORY_MIGRATION 3
+#define DIRTY_MEMORY_MIGRATION 2
+#define DIRTY_MEMORY_NUM 3 /* num of dirty bits */
struct MemoryRegionMmio {
CPUReadMemoryFunc *read[3];