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>
This commit is contained in:
Juan Quintela 2017-03-28 15:05:53 +02:00
parent a66cd90c74
commit 68908ed665
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;