[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen master] xen/sched: don't call sync_vcpu_execstate() in sched_unit_migrate_finish()



commit b492c65da5ec5ed07974db22e998243be475a664
Author:     Juergen Gross <jgross@xxxxxxxx>
AuthorDate: Thu May 14 17:36:13 2020 +0200
Commit:     Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Sat May 16 14:15:46 2020 +0100

    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@xxxxxxxx>
    Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
    Reviewed-by: Dario Faggioli <dfaggioli@xxxxxxxx>
---
 xen/common/sched/core.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/xen/common/sched/core.c b/xen/common/sched/core.c
index 5df66cbf9b..cb49a8bc02 100644
--- a/xen/common/sched/core.c
+++ b/xen/common/sched/core.c
@@ -1078,12 +1078,7 @@ static void sched_unit_migrate_finish(struct sched_unit 
*unit)
     sched_spin_unlock_double(old_lock, new_lock, flags);
 
     if ( old_cpu != new_cpu )
-    {
-        /* Vcpus are moved to other pcpus, commit their states to memory. */
-        for_each_sched_unit_vcpu ( unit, v )
-            sync_vcpu_execstate(v);
         sched_move_irqs(unit);
-    }
 
     /* Wake on new CPU. */
     for_each_sched_unit_vcpu ( unit, v )
--
generated by git-patchbot for /home/xen/git/xen.git#master



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.