acpi: x86: deduplicate HPET AML building
[qemu.git] / include / sysemu / dirtyrate.h
blob4d3b9a4902211a1f8d475054fc244dddae009bcf
1 /*
2 * dirty page rate helper functions
4 * Copyright (c) 2022 CHINA TELECOM CO.,LTD.
6 * Authors:
7 * Hyman Huang(黄勇) <huangy81@chinatelecom.cn>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
13 #ifndef QEMU_DIRTYRATE_H
14 #define QEMU_DIRTYRATE_H
16 typedef struct VcpuStat {
17 int nvcpu; /* number of vcpu */
18 DirtyRateVcpu *rates; /* array of dirty rate for each vcpu */
19 } VcpuStat;
21 int64_t vcpu_calculate_dirtyrate(int64_t calc_time_ms,
22 VcpuStat *stat,
23 unsigned int flag,
24 bool one_shot);
26 void global_dirty_log_change(unsigned int flag,
27 bool start);
28 #endif