]> git.proxmox.com Git - mirror_qemu.git/commit - cpu-common.c
cpus: Introduce cpu_list_generation_id
authorHyman Huang(黄勇) <huangy81@chinatelecom.cn>
Sat, 25 Jun 2022 17:38:31 +0000 (01:38 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 20 Jul 2022 11:15:08 +0000 (12:15 +0100)
commitab1a161fe36be08eb1fbd0bc404e51a99e9d1471
treef48f0f11a9c8fdcb8f8a2cf6d607297ae517dee8
parent1667e2b97ba2f268a77611db80230609523a83ee
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>
cpus-common.c
include/exec/cpu-common.h