Skip to contentSkip to conversation

ocaml/xc: add softreset shutdown reason

PATCH Applied Wei Liu 3 participants 4 messages Nov 16, 2015 – Dec 1, 2015

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 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.

---
Cc: David Scott <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Campbell <[email protected]>

---
 tools/ocaml/libs/xc/xenctrl.ml  | 2 +-
 tools/ocaml/libs/xc/xenctrl.mli | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tools/ocaml/libs/xc/xenctrl.ml +1 -1
index beb95b8..41d228d 100644
@@ -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
 
tools/ocaml/libs/xc/xenctrl.mli +1 -1
index 8928a2e..b4a175b 100644
@@ -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
 
Signature · 1 line
2.1.4
author
#1 lore raw

Dave, ping?

Quoted 43 lines · Wei Liu

According to public/sched.h, there is a new shutdown_reason called soft_reset. Propagate that value to ocaml.

---
Cc: David Scott <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Campbell <[email protected]>

---
 tools/ocaml/libs/xc/xenctrl.ml  | 2 +-
 tools/ocaml/libs/xc/xenctrl.mli | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
tools/ocaml/libs/xc/xenctrl.ml +1 -1
index beb95b8..41d228d 100644
@@ -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
 
tools/ocaml/libs/xc/xenctrl.mli +1 -1
index 8928a2e..b4a175b 100644
@@ -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
 
Signature · 1 line
2.1.4
Acked-by
#2 lore raw
Quoted 4 lines · Wei Liu

Dave, ping?

Sorry, completely forgot about this email.

Looks totally fine to me!

Cheers,
Dave

Quoted 46 lines · Wei Liu
Quoted 43 lines

According to public/sched.h, there is a new shutdown_reason called soft_reset. Propagate that value to ocaml.

---
Cc: David Scott <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Ian Campbell <[email protected]>
---
tools/ocaml/libs/xc/xenctrl.ml | 2 +- tools/ocaml/libs/xc/xenctrl.mli | 2 +-

2 files changed, 2 insertions(+), 2 deletions(-)
tools/ocaml/libs/xc/xenctrl.ml +1 -1
index beb95b8..41d228d 100644
@@ -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

tools/ocaml/libs/xc/xenctrl.mli +1 -1
index 8928a2e..b4a175b 100644
@@ -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

Signature · 1 line
2.1.4