From: David Scott Date: Thu, 4 Feb 2010 22:29:53 +0000 (+0000) Subject: CA-35920: add hypercall simulator support for SCHEDOP_remote_shutdown X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=bd383397e2916f1899e64473fc708276841a0eee;p=xcp%2Fxen-api-libs.git CA-35920: add hypercall simulator support for SCHEDOP_remote_shutdown Signed-off-by: David Scott --- diff --git a/xc/xc_lib_injection.c b/xc/xc_lib_injection.c index 6cf3dfe..beefb50 100644 --- a/xc/xc_lib_injection.c +++ b/xc/xc_lib_injection.c @@ -20,6 +20,8 @@ #include #include +#define HYPCALLcmd "hypcall" + static int fake_interface_open(void) { struct sockaddr_un remote; @@ -330,7 +332,11 @@ static int fake_xen_schedop(int handle, unsigned long cmd, sched_remote_shutdown { 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; }