xref: /openbmc/qemu/include/sysemu/dirtylimit.h (revision cc2b33ea)
1 /*
2  * Dirty page rate limit common functions
3  *
4  * Copyright (c) 2022 CHINA TELECOM CO.,LTD.
5  *
6  * Authors:
7  *  Hyman Huang(黄勇) <huangy81@chinatelecom.cn>
8  *
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.
11  */
12 #ifndef QEMU_DIRTYRLIMIT_H
13 #define QEMU_DIRTYRLIMIT_H
14 
15 #define DIRTYLIMIT_CALC_TIME_MS         1000    /* 1000ms */
16 
17 int64_t vcpu_dirty_rate_get(int cpu_index);
18 void vcpu_dirty_rate_stat_start(void);
19 void vcpu_dirty_rate_stat_stop(void);
20 void vcpu_dirty_rate_stat_initialize(void);
21 void vcpu_dirty_rate_stat_finalize(void);
22 #endif
23