xen/sched: Change vcpu_migrate_*() to operate on schedule unit
authorJuergen Gross <jgross@suse.com>
Fri, 27 Sep 2019 07:00:30 +0000 (09:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Sep 2019 14:03:07 +0000 (16:03 +0200)
commit197baceee47f5d158b2bae4c0e933a6e26871324
treee2d0350d06f4d9ef123a6dbadfe1f32248fa645f
parent427709a9b2831b71e5a86f2b1b99185fb270d0f5
xen/sched: Change vcpu_migrate_*() to operate on schedule unit

vcpu_migrate_start() and vcpu_migrate_finish() are used only to ensure
a vcpu is running on a suitable processor, so they can be switched to
operate on schedule units instead of vcpus.

While doing that rename them accordingly.

Call vcpu_sync_execstate() for each vcpu of the unit when changing
processors in order to make that an explicit action (otherwise this
would happen later when either the vcpu is scheduled on the new
processor or another non-idle vcpu is scheduled on the old processor).

vcpu_move_locked() is switched to schedule unit, too.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
xen/common/schedule.c