Revision 981fdf23
b/exec.c | ||
---|---|---|
57 | 57 |
//#define DEBUG_SUBPAGE |
58 | 58 |
|
59 | 59 |
#if !defined(CONFIG_USER_ONLY) |
60 |
static int in_migration;
|
|
60 |
static bool in_migration;
|
|
61 | 61 |
|
62 | 62 |
RAMList ram_list = { .blocks = QTAILQ_HEAD_INITIALIZER(ram_list.blocks) }; |
63 | 63 |
|
... | ... | |
752 | 752 |
} |
753 | 753 |
} |
754 | 754 |
|
755 |
static int cpu_physical_memory_set_dirty_tracking(int enable)
|
|
755 |
static void cpu_physical_memory_set_dirty_tracking(bool enable)
|
|
756 | 756 |
{ |
757 |
int ret = 0; |
|
758 | 757 |
in_migration = enable; |
759 |
return ret; |
|
760 | 758 |
} |
761 | 759 |
|
762 | 760 |
hwaddr memory_region_section_get_iotlb(CPUArchState *env, |
... | ... | |
1798 | 1796 |
|
1799 | 1797 |
static void core_log_global_start(MemoryListener *listener) |
1800 | 1798 |
{ |
1801 |
cpu_physical_memory_set_dirty_tracking(1);
|
|
1799 |
cpu_physical_memory_set_dirty_tracking(true);
|
|
1802 | 1800 |
} |
1803 | 1801 |
|
1804 | 1802 |
static void core_log_global_stop(MemoryListener *listener) |
1805 | 1803 |
{ |
1806 |
cpu_physical_memory_set_dirty_tracking(0);
|
|
1804 |
cpu_physical_memory_set_dirty_tracking(false);
|
|
1807 | 1805 |
} |
1808 | 1806 |
|
1809 | 1807 |
static MemoryListener core_memory_listener = { |
Also available in: Unified diff