|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 08/13] xsplice: Implement payload loading (v2)
> >+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_each_entry ( data2, &payload_list, list )
> >+ {
> >+ unsigned long start, end;
> >+
> >+ start = (unsigned long)data2->payload_address;
> >+ end = start + data2->payload_pages * PAGE_SIZE;
> >+ if ( *hole_end > start && *hole_start < end )
> >+ {
> >+ *hole_start = end;
> >+ *hole_end = *hole_start + pages * PAGE_SIZE;
> >+ break;
> >+ }
> >+ }
> >+ if ( &data2->list == &payload_list )
> >+ break;
> >+ }
> >+ spin_unlock(&payload_list_lock);
> >+}
>
> This function above should go down into the CONFIG_X86 section below.
Odd. I have it in my tree. Ah right I - I had the patch not committed in. <sigh>
.. snip..
> >+int xsplice_elf_resolve_symbols(struct xsplice_elf *elf)
.. snip..
> >+int xsplice_elf_perform_relocs(struct xsplice_elf *elf)
.. snip..
>
> Is there a reason the above two functions weren't put in the previous patch?
Historical. I will move them there. Thanks!
>
> >diff --git a/xen/include/asm-arm/config.h b/xen/include/asm-arm/config.h
> >index bd832df..4ea66bf 100644
> >--- a/xen/include/asm-arm/config.h
> >+++ b/xen/include/asm-arm/config.h
> >@@ -15,8 +15,10 @@
> >
> > #if defined(CONFIG_ARM_64)
> > # define LONG_BYTEORDER 3
> >+# define ELFSIZE 64
> > #else
> > # define LONG_BYTEORDER 2
> >+# define ELFSIZE 32
> > #endif
>
> What does this do?
Make Elf_Note and all the ELf_* macros actually work.
>
> (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?
>
> --
> Ross Lagerwall
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |