]> xenbits.xensource.com Git - people/vhanquez/xen.git/commitdiff
_csched_cpu_pick(): don't return CPUs outside vCPU's affinity mask
authorJan Beulich <jbeulich@novell.com>
Mon, 14 Mar 2011 17:21:52 +0000 (17:21 +0000)
committerJan Beulich <jbeulich@novell.com>
Mon, 14 Mar 2011 17:21:52 +0000 (17:21 +0000)
This fixes a fairly blatant bug I introduced in c/s 20377:cff23354d026
- I wonder how this went unnoticed for so long.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen-unstable changeset:   23039:c40da47621d8
xen-unstable date:        Mon Mar 14 17:19:22 2011 +0000

xen/common/sched_credit.c

index 269bfeb149addfe2cd9ce958213fa2ce741f2b71..243baee94d5c11feb15f6b950d9cd949ef74cdca 100644 (file)
@@ -451,6 +451,7 @@ _csched_cpu_pick(struct vcpu *vc, bool_t commit)
              || ( !sched_smt_power_savings
                   && (weight_cpu * migrate_factor < weight_nxt) ) )
         {
+            cpus_and(nxt_idlers, cpus, nxt_idlers);
             cpu = cycle_cpu(CSCHED_PCPU(nxt)->idle_bias, nxt_idlers);
             if ( commit )
                CSCHED_PCPU(nxt)->idle_bias = cpu;