Re: [Xen-devel] [PATCH v2 08/13] xsplice: Implement payload loading (v2)

2016-01-25 Thread Ross Lagerwall
On 01/19/2016 04:59 PM, Konrad Rzeszutek Wilk wrote: snip (And perhaps it should also be in the previous patch since it's mentioned in the previous patch's changelog?) I kind of lost where it was added. I could spin it out as a seperate patch - or make it part of the previous patch? Thoughts?

Re: [Xen-devel] [PATCH v2 08/13] xsplice: Implement payload loading (v2)

2016-01-19 Thread Konrad Rzeszutek Wilk
> >+static void find_hole(ssize_t pages, unsigned long *hole_start, > >+ unsigned long *hole_end) > >+{ > >+struct payload *data, *data2; > >+ > >+spin_lock(&payload_list_lock); > >+list_for_each_entry ( data, &payload_list, list ) > >+{ > >+list_for_eac

Re: [Xen-devel] [PATCH v2 08/13] xsplice: Implement payload loading (v2)

2016-01-19 Thread Ross Lagerwall
On 01/14/2016 09:47 PM, Konrad Rzeszutek Wilk wrote: snip +static int move_payload(struct payload *payload, struct xsplice_elf *elf) +{ +uint8_t *buf; +unsigned int i; +size_t core_size = 0; + +/* Compute text regions */ +for ( i = 0; i < elf->hdr->e_shnum; i++ ) +{ +

Re: [Xen-devel] [PATCH v2 08/13] xsplice: Implement payload loading (v2)

2016-01-19 Thread Ross Lagerwall
On 01/14/2016 09:47 PM, Konrad Rzeszutek Wilk wrote: From: 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 wit

[Xen-devel] [PATCH v2 08/13] xsplice: Implement payload loading (v2)

2016-01-14 Thread Konrad Rzeszutek Wilk
From: 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]. - Co