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:
parent
a66cd90c74
commit
68908ed665
|
@ -356,7 +356,7 @@ static inline
|
||||||
uint64_t cpu_physical_memory_sync_dirty_bitmap(unsigned long *dest,
|
uint64_t cpu_physical_memory_sync_dirty_bitmap(unsigned long *dest,
|
||||||
ram_addr_t start,
|
ram_addr_t start,
|
||||||
ram_addr_t length,
|
ram_addr_t length,
|
||||||
int64_t *real_dirty_pages)
|
uint64_t *real_dirty_pages)
|
||||||
{
|
{
|
||||||
ram_addr_t addr;
|
ram_addr_t addr;
|
||||||
unsigned long page = BIT_WORD(start >> TARGET_PAGE_BITS);
|
unsigned long page = BIT_WORD(start >> TARGET_PAGE_BITS);
|
||||||
|
|
|
@ -160,7 +160,7 @@ struct RAMState {
|
||||||
/* bytes transferred at start_time */
|
/* bytes transferred at start_time */
|
||||||
uint64_t bytes_xfer_prev;
|
uint64_t bytes_xfer_prev;
|
||||||
/* number of dirty pages since start_time */
|
/* number of dirty pages since start_time */
|
||||||
int64_t num_dirty_pages_period;
|
uint64_t num_dirty_pages_period;
|
||||||
};
|
};
|
||||||
typedef struct RAMState RAMState;
|
typedef struct RAMState RAMState;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue