mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
ram: Add page-size to output in 'info migrate'
The number of dirty pages is output in 'pages' in the command 'info migrate', so add page-size to calculate the number of dirty pages in bytes. Signed-off-by: Chao Fan <fanc.fnst@cn.fujitsu.com> Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
20afaed98b
commit
030ce1f861
3 changed files with 8 additions and 1 deletions
3
hmp.c
3
hmp.c
|
|
@ -215,6 +215,9 @@ void hmp_info_migrate(Monitor *mon, const QDict *qdict)
|
|||
info->ram->normal_bytes >> 10);
|
||||
monitor_printf(mon, "dirty sync count: %" PRIu64 "\n",
|
||||
info->ram->dirty_sync_count);
|
||||
monitor_printf(mon, "page size: %" PRIu64 " kbytes\n",
|
||||
info->ram->page_size >> 10);
|
||||
|
||||
if (info->ram->dirty_pages_rate) {
|
||||
monitor_printf(mon, "dirty pages rate: %" PRIu64 " pages\n",
|
||||
info->ram->dirty_pages_rate);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue