xen/sched: don't call sync_vcpu_execstate() in sched_unit_migrate_finish()
authorJuergen Gross <jgross@suse.com>
Thu, 14 May 2020 15:36:13 +0000 (17:36 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 16 May 2020 13:15:46 +0000 (14:15 +0100)
commitb492c65da5ec5ed07974db22e998243be475a664
tree855fe32f351882b21fb507fffb02d33470a0d6d3
parent22970c0e0c9e4ffd51816c1cc7e4aa19800d3d09
xen/sched: don't call sync_vcpu_execstate() in sched_unit_migrate_finish()

With support of core scheduling sched_unit_migrate_finish() gained a
call of sync_vcpu_execstate() as it was believed to be called as a
result of vcpu migration in any case.

In case of migrating a vcpu away from a physical cpu for a short period
of time but without ever being scheduled on the selected new cpu, this
might not be true so drop the call and let the lazy state syncing do its
job.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
xen/common/sched/core.c