summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHyman Huang(黄勇)2022-06-25 19:38:31 +0200
committerDr. David Alan Gilbert2022-07-20 13:15:08 +0200
commitab1a161fe36be08eb1fbd0bc404e51a99e9d1471 (patch)
treef48f0f11a9c8fdcb8f8a2cf6d607297ae517dee8 /include
parentaccel/kvm/kvm-all: Refactor per-vcpu dirty ring reaping (diff)
downloadqemu-ab1a161fe36be08eb1fbd0bc404e51a99e9d1471.tar.gz
qemu-ab1a161fe36be08eb1fbd0bc404e51a99e9d1471.tar.xz
qemu-ab1a161fe36be08eb1fbd0bc404e51a99e9d1471.zip
cpus: Introduce cpu_list_generation_id
Introduce cpu_list_generation_id to track cpu list generation so that cpu hotplug/unplug can be detected during measurement of dirty page rate. cpu_list_generation_id could be used to detect changes of cpu list, which is prepared for dirty page rate measurement. Signed-off-by: Hyman Huang(黄勇) <huangy81@chinatelecom.cn> Reviewed-by: Peter Xu <peterx@redhat.com> Message-Id: <06e1f1362b2501a471dce796abb065b04f320fa5.1656177590.git.huangy81@chinatelecom.cn> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/exec/cpu-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/exec/cpu-common.h b/include/exec/cpu-common.h
index 5968551a05..2281be4e10 100644
--- a/include/exec/cpu-common.h
+++ b/include/exec/cpu-common.h
@@ -35,6 +35,7 @@ extern intptr_t qemu_host_page_mask;
void qemu_init_cpu_list(void);
void cpu_list_lock(void);
void cpu_list_unlock(void);
+unsigned int cpu_list_generation_id_get(void);
void tcg_flush_softmmu_tlb(CPUState *cs);