ocaml/xc: add softreset shutdown reason
authorWei Liu <wei.liu2@citrix.com>
Mon, 16 Nov 2015 12:43:19 +0000 (12:43 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 1 Dec 2015 12:09:45 +0000 (12:09 +0000)
According to public/sched.h, there is a new shutdown_reason called
soft_reset. Propagate that value to ocaml.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: David Scott <dave@recoil.org>
tools/ocaml/libs/xc/xenctrl.ml
tools/ocaml/libs/xc/xenctrl.mli

index beb95b82f2676d7dcca7cf458f8258c47af58557..41d228d0b2cdfc09c2aad0a00bbb69f8c01f5130 100644 (file)
@@ -89,7 +89,7 @@ type compile_info =
        compile_date : string;
 }
 
-type shutdown_reason = Poweroff | Reboot | Suspend | Crash | Watchdog
+type shutdown_reason = Poweroff | Reboot | Suspend | Crash | Watchdog | Soft_reset
 
 type domain_create_flag = CDF_HVM | CDF_HAP
 
index 8928a2e243868e2ee3770e2a436f2af828e1c08c..b4a175b71d6b841c4987c1ec9dea4876e8f469e6 100644 (file)
@@ -61,7 +61,7 @@ type compile_info = {
   compile_domain : string;
   compile_date : string;
 }
-type shutdown_reason = Poweroff | Reboot | Suspend | Crash | Watchdog
+type shutdown_reason = Poweroff | Reboot | Suspend | Crash | Watchdog | Soft_reset
 
 type domain_create_flag = CDF_HVM | CDF_HAP