[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen stable-4.6] xen: credit2: properly schedule migration of a running vcpu.
commit 223835f2859f4bd58c5cd2e19f60b3d467189615 Author: Dario Faggioli <dario.faggioli@xxxxxxxxxx> AuthorDate: Wed Sep 28 17:02:11 2016 +0200 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Wed Sep 28 17:02:11 2016 +0200 xen: credit2: properly schedule migration of a running vcpu. If wanting to migrate a vcpu that is actually running, we need to ask the scheduler to chime in as soon as possible, to have the vcpu itself stopped and actually moved. Make sure this happens by, after setting all the relevant flags, raising the scheduler softirq. Signed-off-by: Dario Faggioli <dario.faggioli@xxxxxxxxxx> Acked-by: George Dunlap <george.dunlap@xxxxxxxxxx> master commit: 115e4c5e52c14c126cd8ae0dfe0322c95b65e3c8 master date: 2016-09-15 12:39:47 +0100 --- xen/common/sched_credit2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c index dde7813..4e34111 100644 --- a/xen/common/sched_credit2.c +++ b/xen/common/sched_credit2.c @@ -1212,6 +1212,7 @@ static void migrate(const struct scheduler *ops, svc->migrate_rqd = trqd; set_bit(_VPF_migrating, &svc->vcpu->pause_flags); set_bit(__CSFLAG_runq_migrate_request, &svc->flags); + cpu_raise_softirq(svc->vcpu->processor, SCHEDULE_SOFTIRQ); SCHED_STAT_CRANK(migrate_requested); } else -- generated by git-patchbot for /home/xen/git/xen.git#stable-4.6 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |