]> xenbits.xensource.com Git - xen.git/commitdiff
avoid crash on HVM domain destroy with PCI passthrough
authorJuergen Gross <jgross@suse.com>
Tue, 24 Jun 2014 08:16:12 +0000 (10:16 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 24 Jun 2014 08:16:12 +0000 (10:16 +0200)
c/s bac6334b5 "move domain to cpupool0 before destroying it" introduced a
problem when destroying a HVM domain with PCI passthrough enabled. The
moving of the domain to cpupool0 includes moving the pirqs to the cpupool0
cpus, but the event channel infrastructure already is unusable for the
domain. So just avoid moving pirqs for dying domains.

Signed-off-by: Juergen Gross <jgross@suse.com>
master commit: b9ae60907e6dbc686403e52a7e61a6f856401a1b
master date: 2014-06-10 12:04:08 +0200

xen/common/schedule.c

index e2c6ce7a1c00c070eb1f4a47925c353b993d287c..c85e0b2ac583940a79f7f68db319f55ad5baacbc 100644 (file)
@@ -295,7 +295,8 @@ int sched_move_domain(struct domain *d, struct cpupool *c)
         spin_unlock_irq(lock);
 
         v->sched_priv = vcpu_priv[v->vcpu_id];
-        evtchn_move_pirqs(v);
+        if ( !d->is_dying )
+            evtchn_move_pirqs(v);
 
         new_p = cpumask_cycle(new_p, c->cpu_valid);