x86: parse Dom0 kernel for PVHv2
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 24 Feb 2017 14:48:43 +0000 (15:48 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Feb 2017 14:48:43 +0000 (15:48 +0100)
commit62ba982424cb182715a14447941a4d1110271185
tree0d238358e12669bd1fbc4ea76883677635c4cbfa
parent43b369ab84381903b20084412c1a75c73a258294
x86: parse Dom0 kernel for PVHv2

Introduce a helper to parse the Dom0 kernel.

A new helper is also introduced to libelf, that's used to store the destination
vcpu of the domain. This parameter is needed when loading the kernel on a HVM
domain (PVHv2), since hvm_copy_to_guest_phys requires passing the destination
vcpu.

While there also fix image_base and image_start to be of type "void *", and do
the necessary fixup of related functions.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/domain_build.c