x86/libelf: pass the destination vCPU to libelf for Dom0 build
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 24 Feb 2017 14:47:55 +0000 (15:47 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Feb 2017 14:47:55 +0000 (15:47 +0100)
commit43b369ab84381903b20084412c1a75c73a258294
treeb6911e48a35676fe175cf8f1fad23d8c829ffc17
parent7cb7fd9436ce2e7a25b2f7246a57f00bc1eafc29
x86/libelf: pass the destination vCPU to libelf for Dom0 build

Allow setting the destination vCPU for libelf, so that elf_load_image can take
it into account when loading the kernel for Dom0. This is needed for PVHv2 Dom0
build, so that hvm_copy_to_guest_phys can be called with a Dom0 vCPU instead of
current (that contains the idle vCPU at this point).

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