Re: [Xen-devel] [PATCH v1 07/11] xsplice: Implement payload loading

2015-11-05 Thread Konrad Rzeszutek Wilk
On Thu, Nov 05, 2015 at 11:15:34AM +, Ross Lagerwall wrote: > On 11/04/2015 10:21 PM, Konrad Rzeszutek Wilk wrote: > snip > >> > >>+ > >>+/* > >>+ * The following functions prepare an xSplice module to be executed by > >>+ * allocating space, loading the allocated sections, resolving symbols, >

Re: [Xen-devel] [PATCH v1 07/11] xsplice: Implement payload loading

2015-11-05 Thread Jan Beulich
>>> On 05.11.15 at 12:51, wrote: > On 11/05/2015 10:35 AM, Jan Beulich wrote: > On 04.11.15 at 23:21, wrote: +int xsplice_perform_rela(struct xsplice_elf *elf, + struct xsplice_elf_sec *base, + struct xsplice_elf_sec *rela) +

Re: [Xen-devel] [PATCH v1 07/11] xsplice: Implement payload loading

2015-11-05 Thread Ross Lagerwall
On 11/05/2015 10:35 AM, Jan Beulich wrote: On 04.11.15 at 23:21, wrote: +int xsplice_perform_rela(struct xsplice_elf *elf, + struct xsplice_elf_sec *base, + struct xsplice_elf_sec *rela) +{ +Elf64_Rela *r; +int symndx, i; unsigned int

Re: [Xen-devel] [PATCH v1 07/11] xsplice: Implement payload loading

2015-11-05 Thread Ross Lagerwall
On 11/04/2015 10:21 PM, Konrad Rzeszutek Wilk wrote: snip + +/* + * The following functions prepare an xSplice module to be executed by + * allocating space, loading the allocated sections, resolving symbols, + * performing relocations, etc. + */ +#ifdef CONFIG_X86 +static void *alloc_module(siz

Re: [Xen-devel] [PATCH v1 07/11] xsplice: Implement payload loading

2015-11-05 Thread Jan Beulich
>>> On 04.11.15 at 23:21, wrote: >> +int xsplice_perform_rela(struct xsplice_elf *elf, >> + struct xsplice_elf_sec *base, >> + struct xsplice_elf_sec *rela) >> +{ >> +Elf64_Rela *r; >> +int symndx, i; > > unsigned int > >> +uint64_t val

Re: [Xen-devel] [PATCH v1 07/11] xsplice: Implement payload loading

2015-11-04 Thread Konrad Rzeszutek Wilk
On Tue, Nov 03, 2015 at 06:16:04PM +, Ross Lagerwall wrote: > Add support for loading xsplice payloads. This is somewhat similar to > the Linux kernel module loader, implementing the following steps: > - Verify the elf file. > - Parse the elf file. > - Allocate a region of memory mapped within

[Xen-devel] [PATCH v1 07/11] xsplice: Implement payload loading

2015-11-03 Thread Ross Lagerwall
Add support for loading xsplice payloads. This is somewhat similar to the Linux kernel module loader, implementing the following steps: - Verify the elf file. - Parse the elf file. - Allocate a region of memory mapped within a free area of [xen_virt_end, XEN_VIRT_END]. - Copy allocated sections i