* [PATCH] ocaml/xc: add softreset shutdown reason
@ 2015-11-16 12:43 Wei Liu
2015-11-26 12:11 ` Wei Liu
0 siblings, 1 reply; 4+ messages in thread
From: Wei Liu @ 2015-11-16 12:43 UTC (permalink / raw)
To: Xen-devel
Cc: Ian Jackson, Stefano Stabellini, Wei Liu, Ian Campbell,
David Scott
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>
---
Cc: David Scott <dave@recoil.org>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
---
tools/ocaml/libs/xc/xenctrl.ml | 2 +-
tools/ocaml/libs/xc/xenctrl.mli | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/ocaml/libs/xc/xenctrl.ml b/tools/ocaml/libs/xc/xenctrl.ml
index beb95b8..41d228d 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 8928a2e..b4a175b 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
--
2.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] ocaml/xc: add softreset shutdown reason
2015-11-16 12:43 [PATCH] ocaml/xc: add softreset shutdown reason Wei Liu
@ 2015-11-26 12:11 ` Wei Liu
2015-11-26 12:13 ` David Scott
0 siblings, 1 reply; 4+ messages in thread
From: Wei Liu @ 2015-11-26 12:11 UTC (permalink / raw)
To: Xen-devel
Cc: Ian Jackson, Stefano Stabellini, Wei Liu, Ian Campbell,
David Scott
Dave, ping?
On Mon, Nov 16, 2015 at 12:43:19PM +0000, Wei Liu wrote:
> 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>
> ---
> Cc: David Scott <dave@recoil.org>
> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
> Cc: Ian Campbell <ian.campbell@citrix.com>
> ---
> tools/ocaml/libs/xc/xenctrl.ml | 2 +-
> tools/ocaml/libs/xc/xenctrl.mli | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/ocaml/libs/xc/xenctrl.ml b/tools/ocaml/libs/xc/xenctrl.ml
> index beb95b8..41d228d 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 8928a2e..b4a175b 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
>
> --
> 2.1.4
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] ocaml/xc: add softreset shutdown reason
2015-11-26 12:11 ` Wei Liu
@ 2015-11-26 12:13 ` David Scott
2015-12-01 12:38 ` Ian Campbell
0 siblings, 1 reply; 4+ messages in thread
From: David Scott @ 2015-11-26 12:13 UTC (permalink / raw)
To: Wei Liu; +Cc: Xen-devel, Ian Jackson, Ian Campbell, Stefano Stabellini
> On 26 Nov 2015, at 12:11, Wei Liu <wei.liu2@citrix.com> wrote:
>
> Dave, ping?
Sorry, completely forgot about this email.
Looks totally fine to me!
Acked-by: David Scott <dave@recoil.org>
Cheers,
Dave
>
> On Mon, Nov 16, 2015 at 12:43:19PM +0000, Wei Liu wrote:
>> 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>
>> ---
>> Cc: David Scott <dave@recoil.org>
>> Cc: Ian Jackson <ian.jackson@eu.citrix.com>
>> Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
>> Cc: Ian Campbell <ian.campbell@citrix.com>
>> ---
>> tools/ocaml/libs/xc/xenctrl.ml | 2 +-
>> tools/ocaml/libs/xc/xenctrl.mli | 2 +-
>> 2 files changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/tools/ocaml/libs/xc/xenctrl.ml b/tools/ocaml/libs/xc/xenctrl.ml
>> index beb95b8..41d228d 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 8928a2e..b4a175b 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
>>
>> --
>> 2.1.4
>>
>
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] ocaml/xc: add softreset shutdown reason
2015-11-26 12:13 ` David Scott
@ 2015-12-01 12:38 ` Ian Campbell
0 siblings, 0 replies; 4+ messages in thread
From: Ian Campbell @ 2015-12-01 12:38 UTC (permalink / raw)
To: David Scott, Wei Liu; +Cc: Xen-devel, Ian Jackson, Stefano Stabellini
On Thu, 2015-11-26 at 12:13 +0000, David Scott wrote:
> > On 26 Nov 2015, at 12:11, Wei Liu <wei.liu2@citrix.com> wrote:
> >
> > Dave, ping?
>
> Sorry, completely forgot about this email.
>
> Looks totally fine to me!
>
> Acked-by: David Scott <dave@recoil.org>
Applied, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-12-01 12:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-16 12:43 [PATCH] ocaml/xc: add softreset shutdown reason Wei Liu
2015-11-26 12:11 ` Wei Liu
2015-11-26 12:13 ` David Scott
2015-12-01 12:38 ` Ian Campbell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.