migration/dirtyrate: Remove an extra parameter

vcpu_dirty_stat_collect() has an unused parameter so remove it.

Signed-off-by: Wafer <wafer@jaguarmicro.com>
Reviewed-by: Hyman Huang <yong.huang@smartx.com>
Message-Id: <20231204012230.4123-1-wafer@jaguarmicro.com>
This commit is contained in:
Wafer 2023-12-04 09:22:30 +08:00 committed by Hyman Huang
parent 191710c221
commit 4918712fb1

View File

@ -129,8 +129,7 @@ static DirtyPageRecord *vcpu_dirty_stat_alloc(VcpuStat *stat)
return g_new0(DirtyPageRecord, nvcpu); return g_new0(DirtyPageRecord, nvcpu);
} }
static void vcpu_dirty_stat_collect(VcpuStat *stat, static void vcpu_dirty_stat_collect(DirtyPageRecord *records,
DirtyPageRecord *records,
bool start) bool start)
{ {
CPUState *cpu; CPUState *cpu;
@ -158,7 +157,7 @@ retry:
WITH_QEMU_LOCK_GUARD(&qemu_cpu_list_lock) { WITH_QEMU_LOCK_GUARD(&qemu_cpu_list_lock) {
gen_id = cpu_list_generation_id_get(); gen_id = cpu_list_generation_id_get();
records = vcpu_dirty_stat_alloc(stat); records = vcpu_dirty_stat_alloc(stat);
vcpu_dirty_stat_collect(stat, records, true); vcpu_dirty_stat_collect(records, true);
} }
duration = dirty_stat_wait(calc_time_ms, init_time_ms); duration = dirty_stat_wait(calc_time_ms, init_time_ms);
@ -172,7 +171,7 @@ retry:
cpu_list_unlock(); cpu_list_unlock();
goto retry; goto retry;
} }
vcpu_dirty_stat_collect(stat, records, false); vcpu_dirty_stat_collect(records, false);
} }
for (i = 0; i < stat->nvcpu; i++) { for (i = 0; i < stat->nvcpu; i++) {