WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

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

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH] add simulator support for SCHEDOP_remote_shutdown
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Thu, 4 Feb 2010 22:32:01 +0000
Delivery-date: Thu, 04 Feb 2010 14:24:41 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# 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
<Prev in Thread] Current Thread [Next in Thread>