提交 68908ed6 编写于 作者: J Juan Quintela

ram: Change num_dirty_pages_period type to uint64_t

Signed-off-by: NJuan Quintela <quintela@redhat.com>
Reviewed-by: NDr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: NPeter Xu <peterx@redhat.com>
上级 a66cd90c
...@@ -356,7 +356,7 @@ static inline ...@@ -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 { ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册