aboutsummaryrefslogtreecommitdiff
path: root/migration
diff options
context:
space:
mode:
authorWafer <wafer@jaguarmicro.com>2023-12-04 09:22:30 +0800
committerHyman Huang <yong.huang@smartx.com>2023-12-25 18:05:47 +0800
commit4918712fb1c34ae43361b402642e426be85a789e (patch)
tree7f9cee45f0f15959bf140ac58d3c01758818f322 /migration
parent191710c221f65b1542f6ea7fa4d30dde6e134fd7 (diff)
downloadqemu-4918712fb1c34ae43361b402642e426be85a789e.zip
qemu-4918712fb1c34ae43361b402642e426be85a789e.tar.gz
qemu-4918712fb1c34ae43361b402642e426be85a789e.tar.bz2
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>
Diffstat (limited to 'migration')
-rw-r--r--migration/dirtyrate.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/migration/dirtyrate.c b/migration/dirtyrate.c
index 036ac01..62d86b8 100644
--- a/migration/dirtyrate.c
+++ b/migration/dirtyrate.c
@@ -129,8 +129,7 @@ static DirtyPageRecord *vcpu_dirty_stat_alloc(VcpuStat *stat)
return g_new0(DirtyPageRecord, nvcpu);
}
-static void vcpu_dirty_stat_collect(VcpuStat *stat,
- DirtyPageRecord *records,
+static void vcpu_dirty_stat_collect(DirtyPageRecord *records,
bool start)
{
CPUState *cpu;
@@ -158,7 +157,7 @@ retry:
WITH_QEMU_LOCK_GUARD(&qemu_cpu_list_lock) {
gen_id = cpu_list_generation_id_get();
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);
@@ -172,7 +171,7 @@ retry:
cpu_list_unlock();
goto retry;
}
- vcpu_dirty_stat_collect(stat, records, false);
+ vcpu_dirty_stat_collect(records, false);
}
for (i = 0; i < stat->nvcpu; i++) {