diff options
author | Peter Xu <peterx@redhat.com> | 2025-06-13 10:12:14 -0400 |
---|---|---|
committer | Fabiano Rosas <farosas@suse.de> | 2025-07-11 10:37:38 -0300 |
commit | 4c8a1194852844a1fc07af804579c7cf997e5c4a (patch) | |
tree | 620c65a275aa20c1c47bd73e78e755d6f1461a77 /scripts/qapi | |
parent | 28a185204ee9a4dd1b0da38c92f2d9326ca590d5 (diff) | |
download | qemu-4c8a1194852844a1fc07af804579c7cf997e5c4a.zip qemu-4c8a1194852844a1fc07af804579c7cf997e5c4a.tar.gz qemu-4c8a1194852844a1fc07af804579c7cf997e5c4a.tar.bz2 |
migration/postcopy: Cleanup the total blocktime accounting
The variable vcpu_total_blocktime isn't easy to follow. In reality, it
wants to capture the case where all vCPUs are stopped, and now there will
be some vCPUs starts running.
The name now starts to conflict with vcpu_blocktime_total[], meanwhile it's
actually not necessary to have the variable at all: since nobody is
touching smp_cpus_down except ourselves, we can safely do the calculation
at the end before decrementing smp_cpus_down.
Hopefully this makes the logic easier to read, side benefit is we drop one
temp var.
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20250613141217.474825-12-peterx@redhat.com
Signed-off-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'scripts/qapi')
0 files changed, 0 insertions, 0 deletions