qemu: add the print of page size in cmd domjobinfo

The command "info migrate" of qemu outputs the dirty-pages-rate during
migration, but page size is different in different architectures. So
page size should be output to calculate dirty pages in bytes.

Page size is already implemented with commit
030ce1f8612215fcbe9d353dfeaeb2937f8e3f94 in qemu.
Now Implement the counter-part in libvirt.

Signed-off-by: Chao Fan <fanc.fnst@cn.fujitsu.com>
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
Chao Fan
2017-10-09 10:00:03 +08:00
committed by Jiri Denemark
parent 7388d055d4
commit 79b7ac43fa
6 changed files with 35 additions and 0 deletions

View File

@@ -3335,6 +3335,17 @@ typedef enum {
*/
# define VIR_DOMAIN_JOB_MEMORY_DIRTY_RATE "memory_dirty_rate"
/**
* VIR_DOMAIN_JOB_MEMORY_PAGE_SIZE:
*
* virDomainGetJobStats field: memory page size in bytes, as
* VIR_TYPED_PARAM_ULLONG. If present, this parameter can be used to
* convert other page based statistics, such as
* VIR_DOMAIN_JOB_MEMORY_DIRTY_RATE or VIR_DOMAIN_JOB_COMPRESSION_PAGES
* to bytes.
*/
# define VIR_DOMAIN_JOB_MEMORY_PAGE_SIZE "memory_page_size"
/**
* VIR_DOMAIN_JOB_MEMORY_ITERATION:
*