kexec: add public interface for improved load/unload sub-ops
authorDavid Vrabel <david.vrabel@citrix.com>
Tue, 12 Nov 2013 10:39:29 +0000 (11:39 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Nov 2013 10:39:29 +0000 (11:39 +0100)
commit5813737f8512b0c5ec9808e489f71b905d6c7c53
treed332cd9956c713f2c03c3eb182e0ab754ea319e0
parentfb238512c13852d53578bffa763a99e2fb2425ce
kexec: add public interface for improved load/unload sub-ops

Add replacement KEXEC_CMD_load and KEXEC_CMD_unload sub-ops to the
kexec hypercall.  These new sub-ops allow a priviledged guest to
provide the image data to be loaded into Xen memory or the crash
region instead of guests loading the image data themselves and
providing the relocation code and metadata.

The old interface is provided to guests requesting an interface
version prior to 4.4.

Bump __XEN_LATEST_INTERFACE_VERSION__ to 0x00040400.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Don Slutz <dslutz@verizon.com>
Tested-by: Don Slutz <dslutz@verizon.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Tested-by: Daniel Kiper <daniel.kiper@oracle.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/common/kexec.c
xen/include/public/kexec.h
xen/include/public/xen-compat.h