debuggers.hg

changeset 21975:cd606ea8f963

Always call domain_update_node_affinity() with IRQs enabled.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Aug 06 16:49:16 2010 +0100 (2010-08-06)
parents 63c8222ea2c9
children fe930e1b2ce8
files xen/common/schedule.c
line diff
     1.1 --- a/xen/common/schedule.c	Fri Aug 06 15:42:49 2010 +0100
     1.2 +++ b/xen/common/schedule.c	Fri Aug 06 16:49:16 2010 +0100
     1.3 @@ -528,13 +528,14 @@ int vcpu_set_affinity(struct vcpu *v, cp
     1.4  
     1.5      old_affinity = v->cpu_affinity;
     1.6      v->cpu_affinity = *affinity;
     1.7 -    domain_update_node_affinity(v->domain);
     1.8      *affinity = old_affinity;
     1.9      if ( !cpu_isset(v->processor, v->cpu_affinity) )
    1.10          set_bit(_VPF_migrating, &v->pause_flags);
    1.11  
    1.12      vcpu_schedule_unlock_irq(v);
    1.13  
    1.14 +    domain_update_node_affinity(v->domain);
    1.15 +
    1.16      if ( test_bit(_VPF_migrating, &v->pause_flags) )
    1.17      {
    1.18          vcpu_sleep_nosync(v);