[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 12/38] memory: use bit 2 for migration
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 12/38] memory: use bit 2 for migration |
Date: |
Tue, 17 Dec 2013 16:25:48 +0100 |
For historical reasons it was bit 3. Once there, create a constant to
know the number of clients.
Signed-off-by: Juan Quintela <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
---
include/exec/memory.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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];
--
1.8.3.1
- [Qemu-devel] [PATCH 05/38] memory: create function to set a single dirty bit, (continued)
- [Qemu-devel] [PATCH 05/38] memory: create function to set a single dirty bit, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 06/38] exec: create function to get a single dirty bit, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 07/38] memory: make cpu_physical_memory_is_dirty return bool, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 08/38] memory: all users of cpu_physical_memory_get_dirty used only one flag, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 09/38] memory: set single dirty flags when possible, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 10/38] memory: cpu_physical_memory_set_dirty_range() always dirty all flags, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 12/38] memory: use bit 2 for migration,
Juan Quintela <=
- [Qemu-devel] [PATCH 13/38] memory: make sure that client is always inside range, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 11/38] memory: cpu_physical_memory_mask_dirty_range() always clears a single flag, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 14/38] memory: only resize dirty bitmap when memory size increases, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 15/38] memory: cpu_physical_memory_clear_dirty_flag() result is never used, Juan Quintela, 2013/12/17
- [Qemu-devel] [PATCH 16/38] bitmap: Add bitmap_zero_extend operation, Juan Quintela, 2013/12/17