Re: [Xen-devel] [PATCH v3] kexec: implement STATUS hypercall to check if image is loaded

2017-01-18 Thread Eric DeVolder
On 01/18/2017 04:47 AM, Wei Liu wrote: On Wed, Jan 18, 2017 at 03:45:54AM -0700, Jan Beulich wrote: On 18.01.17 at 11:37, wrote: On Wed, Jan 18, 2017 at 03:19:49AM -0700, Jan Beulich wrote: On 17.01.17 at 18:29, wrote: --- a/xen/common/kexec.c +++ b/xen/common/kexec.c @@ -1169,6 +1169,22 @@

Re: [Xen-devel] [PATCH v3] kexec: implement STATUS hypercall to check if image is loaded

2017-01-18 Thread Wei Liu
On Wed, Jan 18, 2017 at 03:45:54AM -0700, Jan Beulich wrote: > >>> On 18.01.17 at 11:37, wrote: > > On Wed, Jan 18, 2017 at 03:19:49AM -0700, Jan Beulich wrote: > >> >>> On 17.01.17 at 18:29, wrote: > >> > --- a/xen/common/kexec.c > >> > +++ b/xen/common/kexec.c > >> > @@ -1169,6 +1169,22 @@ stat

Re: [Xen-devel] [PATCH v3] kexec: implement STATUS hypercall to check if image is loaded

2017-01-18 Thread Jan Beulich
>>> On 18.01.17 at 11:37, wrote: > On Wed, Jan 18, 2017 at 03:19:49AM -0700, Jan Beulich wrote: >> >>> On 17.01.17 at 18:29, wrote: >> > --- a/xen/common/kexec.c >> > +++ b/xen/common/kexec.c >> > @@ -1169,6 +1169,22 @@ static int >> > kexec_unload(XEN_GUEST_HANDLE_PARAM(void) uarg) >> > re

Re: [Xen-devel] [PATCH v3] kexec: implement STATUS hypercall to check if image is loaded

2017-01-18 Thread Wei Liu
On Wed, Jan 18, 2017 at 03:19:49AM -0700, Jan Beulich wrote: > >>> On 17.01.17 at 18:29, wrote: > > --- a/xen/common/kexec.c > > +++ b/xen/common/kexec.c > > @@ -1169,6 +1169,22 @@ static int kexec_unload(XEN_GUEST_HANDLE_PARAM(void) > > uarg) > > return kexec_do_unload(&unload); > > } > >

Re: [Xen-devel] [PATCH v3] kexec: implement STATUS hypercall to check if image is loaded

2017-01-18 Thread Jan Beulich
>>> On 17.01.17 at 18:29, wrote: > --- a/xen/common/kexec.c > +++ b/xen/common/kexec.c > @@ -1169,6 +1169,22 @@ static int kexec_unload(XEN_GUEST_HANDLE_PARAM(void) > uarg) > return kexec_do_unload(&unload); > } > > +static int kexec_status(XEN_GUEST_HANDLE_PARAM(void) uarg) > +{ > +x

Re: [Xen-devel] [PATCH v3] kexec: implement STATUS hypercall to check if image is loaded

2017-01-18 Thread Wei Liu
On Tue, Jan 17, 2017 at 11:29:16AM -0600, Eric DeVolder wrote: > The tools that use kexec are asynchronous in nature and do not keep > state changes. As such provide an hypercall to find out whether an > image has been loaded for either type. > > Note: No need to modify XSM as it has one size fits

Re: [Xen-devel] [PATCH v3] kexec: implement STATUS hypercall to check if image is loaded

2017-01-17 Thread Daniel Kiper
On Tue, Jan 17, 2017 at 11:29:16AM -0600, Eric DeVolder wrote: > The tools that use kexec are asynchronous in nature and do not keep > state changes. As such provide an hypercall to find out whether an > image has been loaded for either type. > > Note: No need to modify XSM as it has one size fits

Re: [Xen-devel] [PATCH v3] kexec: implement STATUS hypercall to check if image is loaded

2017-01-17 Thread Andrew Cooper
On 17/01/17 17:29, Eric DeVolder wrote: > The tools that use kexec are asynchronous in nature and do not keep > state changes. As such provide an hypercall to find out whether an > image has been loaded for either type. > > Note: No need to modify XSM as it has one size fits all check and > does no

[Xen-devel] [PATCH v3] kexec: implement STATUS hypercall to check if image is loaded

2017-01-17 Thread Eric DeVolder
The tools that use kexec are asynchronous in nature and do not keep state changes. As such provide an hypercall to find out whether an image has been loaded for either type. Note: No need to modify XSM as it has one size fits all check and does not check for subcommands. Note: No need to check KE