From: Wei Liu Date: Mon, 16 Nov 2015 12:43:19 +0000 (+0000) Subject: ocaml/xc: add softreset shutdown reason X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2150 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cc41036da8d9075c9b9d57685b6b81f0f964369f;p=xen.git ocaml/xc: add softreset shutdown reason According to public/sched.h, there is a new shutdown_reason called soft_reset. Propagate that value to ocaml. Signed-off-by: Wei Liu Acked-by: David Scott --- diff --git a/tools/ocaml/libs/xc/xenctrl.ml b/tools/ocaml/libs/xc/xenctrl.ml index beb95b82f2..41d228d0b2 100644 --- a/tools/ocaml/libs/xc/xenctrl.ml +++ b/tools/ocaml/libs/xc/xenctrl.ml @@ -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 diff --git a/tools/ocaml/libs/xc/xenctrl.mli b/tools/ocaml/libs/xc/xenctrl.mli index 8928a2e243..b4a175b71d 100644 --- a/tools/ocaml/libs/xc/xenctrl.mli +++ b/tools/ocaml/libs/xc/xenctrl.mli @@ -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