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

[Xen-API] [PATCH] add simulator support for SCHEDOP_remote_shutdown



# HG changeset patch
# User David Scott <dave.scott@xxxxxxxxxxxxx>
# Date 1265322593 0
# Node ID 3c9869bf77ea3c01ca0b85e2ac8a0d32771c5e32
# Parent  5fff8142e9854c3bb618bba28d66479374e691fd
CA-35920: add hypercall simulator support for SCHEDOP_remote_shutdown

Signed-off-by: David Scott <dave.scott@xxxxxxxxxxxxx>

diff -r 5fff8142e985 -r 3c9869bf77ea xc/xc_lib_injection.c
--- a/xc/xc_lib_injection.c     Wed Feb 03 22:33:21 2010 +0000
+++ b/xc/xc_lib_injection.c     Thu Feb 04 22:29:53 2010 +0000
@@ -19,6 +19,8 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/un.h>
+
+#define HYPCALLcmd "hypcall"
 
 static int fake_interface_open(void)
 {
@@ -330,7 +332,11 @@
 {
        switch (cmd) {
        case SCHEDOP_remote_shutdown:
-               return 0;
+               marshall_command(handle, "%s,%d,%d,%d\n", HYPCALLcmd,
+                                                1, 
+                                arg->domain_id,
+                                                arg->reason);
+               return unmarshall_return(handle);
        default:
                return -EINVAL;
        }
1 file changed, 7 insertions(+), 1 deletion(-)
xc/xc_lib_injection.c |    8 +++++++-


Attachment: xen-api-libs.hg.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.