Continuing on the stack saved by __prepare_to_wait() on the wrong cpu
is rather dangerous.
Instead of doing so just call the scheduler again as it already is
happening in the similar case in __prepare_to_wait() when doing the
setjmp() would be wrong.
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
{
gdprintk(XENLOG_ERR, "vcpu affinity lost\n");
domain_crash(curr->domain);
+
+ /* Re-initiate scheduler and don't longjmp(). */
+ raise_softirq(SCHEDULE_SOFTIRQ);
+ for ( ; ; )
+ do_softirq();
}
/*