diff options
author | Juan Quintela <quintela@redhat.com> | 2013-10-08 12:25:25 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2014-01-13 14:04:53 +0100 |
commit | 63995cebfaa283586682ea6236c9686b2a49ece7 (patch) | |
tree | 5e71c9cb1f50d9acbf282477f1cba9d8366b1848 /include | |
parent | 36187e2ca0295364dcb9a3f256a6fcd77e983c02 (diff) |
memory: set single dirty flags when possible
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-internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/exec/memory-internal.h b/include/exec/memory-internal.h index 53cfe83d2f..9f4ad697b3 100644 --- a/include/exec/memory-internal.h +++ b/include/exec/memory-internal.h @@ -89,7 +89,9 @@ static inline void cpu_physical_memory_set_dirty_flag(ram_addr_t addr, static inline void cpu_physical_memory_set_dirty(ram_addr_t addr) { - cpu_physical_memory_set_dirty_flags(addr, 0xff); + cpu_physical_memory_set_dirty_flag(addr, MIGRATION_DIRTY_FLAG); + cpu_physical_memory_set_dirty_flag(addr, VGA_DIRTY_FLAG); + cpu_physical_memory_set_dirty_flag(addr, CODE_DIRTY_FLAG); } static inline int cpu_physical_memory_clear_dirty_flags(ram_addr_t addr, |