[xen-unstable] Remove domain_pause()/domain_unpause() from SCHEDOP_remote_shutdown.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen-unstable] Remove domain_pause()/domain_unpause() from SCHEDOP_remote_shutdown.

Xen patchbot-unstable
# HG changeset patch
# User Keir Fraser <[hidden email]>
# Date 1212400612 -3600
# Node ID b9879d7108259d685ad567cedeeb785b67ee28e6
# Parent  a4775034ef83946803eb6a61e0af33fb6971123f
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 <[hidden email]>
---
 xen/common/schedule.c |    3 ---
 1 files changed, 3 deletions(-)

diff -r a4775034ef83 -r b9879d710825 xen/common/schedule.c
--- a/xen/common/schedule.c Mon Jun 02 10:55:55 2008 +0100
+++ b/xen/common/schedule.c Mon Jun 02 10:56:52 2008 +0100
@@ -503,10 +503,7 @@ ret_t do_sched_op(int cmd, XEN_GUEST_HAN
             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;

_______________________________________________
Xen-changelog mailing list
[hidden email]
http://lists.xensource.com/xen-changelog