From: Keir Fraser Date: Mon, 2 Jun 2008 09:56:52 +0000 (+0100) Subject: Remove domain_pause()/domain_unpause() from SCHEDOP_remote_shutdown. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14200^2~108 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6a7c065e8e418cb7346702007ecaf8fdb3ee0c4f;p=xen.git Remove domain_pause()/domain_unpause() from SCHEDOP_remote_shutdown. It is pointless and causes the hypervisor to hang if dom0 invokes this hypercall on itself. Signed-off-by: Keir Fraser --- diff --git a/xen/common/schedule.c b/xen/common/schedule.c index 4248ae9ea8..2934d07029 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -503,10 +503,7 @@ ret_t do_sched_op(int cmd, XEN_GUEST_HANDLE(void) arg) return ret; } - /* domain_pause() prevens any further execution in guest context. */ - domain_pause(d); domain_shutdown(d, (u8)sched_remote_shutdown.reason); - domain_unpause(d); rcu_unlock_domain(d); ret = 0;