commit 6d60b1ecf7d79d00d946ae19a52f256d4bc2a823 Author: Dario Faggioli Date: Wed Oct 28 01:15:35 2015 +0100 Signed-off-by: Dario Faggioli diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c index 683feeb..29a9175 100644 --- a/xen/common/sched_credit.c +++ b/xen/common/sched_credit.c @@ -1005,15 +1005,17 @@ csched_vcpu_wake(const struct scheduler *ops, struct vcpu *vc, unsigned wf) * more CPU resource intensive VCPUs without impacting overall * system fairness. * - * The one exception is for VCPUs of capped domains unpausing - * after earning credits they had overspent. We don't boost - * those. + * There are a couple of exceptions: + * - VCPUs of capped domains unpausing after earning credits + * they had overspent; + * - VCPUs that are being migrated to another pCPU, rather + * than actually waking up after being blocked. + * We don't boost those. */ if ( svc->pri == CSCHED_PRI_TS_UNDER && - !test_bit(CSCHED_FLAG_VCPU_PARKED, &svc->flags) ) - { + !test_bit(CSCHED_FLAG_VCPU_PARKED, &svc->flags) && + !(wf & WF_migrating) ) svc->pri = CSCHED_PRI_TS_BOOST; - } /* Put the VCPU on the runq and tickle CPUs */ __runq_insert(cpu, svc);