diff options
author | Juan Quintela <quintela@redhat.com> | 2017-03-28 15:05:53 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2017-04-21 12:25:36 +0200 |
commit | 68908ed665f4d97afb271c5d5b564d951951538c (patch) | |
tree | 4eda6ba2f9d6b85aef9961176af5a056b236af23 | |
parent | a66cd90c74f2a521d2441ba591f822cc93291cab (diff) |
ram: Change num_dirty_pages_period type to uint64_t
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
-rw-r--r-- | include/exec/ram_addr.h | 2 | ||||
-rw-r--r-- | migration/ram.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h index b05dc84ab9..9aadc5c830 100644 --- a/include/exec/ram_addr.h +++ b/include/exec/ram_addr.h @@ -356,7 +356,7 @@ static inline uint64_t cpu_physical_memory_sync_dirty_bitmap(unsigned long *dest, ram_addr_t start, ram_addr_t length, - int64_t *real_dirty_pages) + uint64_t *real_dirty_pages) { ram_addr_t addr; unsigned long page = BIT_WORD(start >> TARGET_PAGE_BITS); diff --git a/migration/ram.c b/migration/ram.c index d6cf032342..9a823558db 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -160,7 +160,7 @@ struct RAMState { /* bytes transferred at start_time */ uint64_t bytes_xfer_prev; /* number of dirty pages since start_time */ - int64_t num_dirty_pages_period; + uint64_t num_dirty_pages_period; }; typedef struct RAMState RAMState; |