| * dirty page rate helper functions |
| * Copyright (c) 2022 CHINA TELECOM CO.,LTD. |
| * Hyman Huang(黄勇) <huangy81@chinatelecom.cn> |
| * This work is licensed under the terms of the GNU GPL, version 2 or later. |
| * See the COPYING file in the top-level directory. |
| #include "qapi/qapi-types-migration.h" |
| typedef struct VcpuStat { |
| int nvcpu; /* number of vcpu */ |
| DirtyRateVcpu *rates; /* array of dirty rate for each vcpu */ |
| int64_t vcpu_calculate_dirtyrate(int64_t calc_time_ms, |
| void global_dirty_log_change(unsigned int flag, |