kexec: implement STATUS hypercall to check if image is loaded
authorEric DeVolder <eric.devolder@oracle.com>
Tue, 17 Jan 2017 17:29:16 +0000 (11:29 -0600)
committerWei Liu <wei.liu2@citrix.com>
Wed, 18 Jan 2017 09:55:49 +0000 (09:55 +0000)
commit984cf6c5223d07ac10a53b25fa85356f6f98d9fb
treeb9b4895958cb1c81ba8ed5faf6192ec26752800f
parentac94372254232a3ba0ecbb5ae8034cbcc0eeac00
kexec: implement STATUS hypercall to check if image is loaded

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 KEXEC_FLAG_IN_PROGRESS (and error out of
kexec_status()) as this flag is set only once by the first/only
cpu on the crash path.

Note: This is just the Xen side of the hypercall, kexec-tools patch
to come separately.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Eric DeVolder <eric.devolder@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/include/xenctrl.h
tools/libxc/xc_kexec.c
xen/common/kexec.c
xen/include/public/kexec.h