mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
@@ -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:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user