]> xenbits.xensource.com Git - xen.git/commit
xsplice: Add helper elf routines
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Fri, 19 Feb 2016 19:37:17 +0000 (14:37 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 29 Apr 2016 07:58:19 +0000 (03:58 -0400)
commit18adaa9da02d7014a7760e15d213f45e23df556f
tree51481797b2b7c4588b7a44d7f98d7ea946041e53
parent9e3e7117770ace6e0cb2a50dfc4859a3d9ce7b6b
xsplice: Add helper elf routines

Add Elf routines and data structures in preparation for loading an
xSplice payload.

We make an assumption that the max number of sections an ELF payload
can have is 64. We can in future make this be dependent on the
names of the sections and verifying against a list, but for right now
this suffices.

Also we a whole lot of checks to make sure that the ELF payload
file is not corrupted nor that the offsets point past the file.

For most of the checks we print an message if the hypervisor is built
with debug enabled.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/common/Makefile
xen/common/xsplice_elf.c [new file with mode: 0644]
xen/include/xen/xsplice.h
xen/include/xen/xsplice_elf.h [new file with mode: 0644]