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

[Xen-changelog] [xen stable-4.3] avoid crash on HVM domain destroy with PCI passthrough



commit ddfad447042627522ce90289c1920922a6118f25
Author:     Juergen Gross <jgross@xxxxxxxx>
AuthorDate: Tue Jun 24 09:53:03 2014 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Jun 24 09:53:03 2014 +0200

    avoid crash on HVM domain destroy with PCI passthrough
    
    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@xxxxxxxx>
    master commit: b9ae60907e6dbc686403e52a7e61a6f856401a1b
    master date: 2014-06-10 12:04:08 +0200
---
 xen/common/schedule.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/xen/common/schedule.c b/xen/common/schedule.c
index def568b..332a21f 100644
--- a/xen/common/schedule.c
+++ b/xen/common/schedule.c
@@ -296,7 +296,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);
 
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.3

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
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®.