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

[Xen-changelog] [xen-4.0-testing] _csched_cpu_pick(): don't return CPUs outside vCPU's affinity mask



# HG changeset patch
# User Jan Beulich <jbeulich@xxxxxxxxxx>
# Date 1300123312 0
# Node ID 80e6045111e1ff7e364b8d381bf456edb9ad2a0f
# Parent  ee088a0b5cb89793da67abb3cc389f42247bba98
_csched_cpu_pick(): don't return CPUs outside vCPU's affinity mask

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@xxxxxxxxxx>
xen-unstable changeset:   23039:c40da47621d8
xen-unstable date:        Mon Mar 14 17:19:22 2011 +0000
---


diff -r ee088a0b5cb8 -r 80e6045111e1 xen/common/sched_credit.c
--- a/xen/common/sched_credit.c Mon Mar 14 17:00:58 2011 +0000
+++ b/xen/common/sched_credit.c Mon Mar 14 17:21:52 2011 +0000
@@ -451,6 +451,7 @@
              || ( !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;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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