# HG changeset patch # User David Scott # Date 1265322593 0 # Node ID 3c9869bf77ea3c01ca0b85e2ac8a0d32771c5e32 # Parent 5fff8142e9854c3bb618bba28d66479374e691fd CA-35920: add hypercall simulator support for SCHEDOP_remote_shutdown Signed-off-by: David Scott 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 #include #include + +#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; }