[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v3 7/9] vpci: add a priority field to the vPCI register initializer



>>> On 27.04.17 at 16:35, <roger.pau@xxxxxxxxxx> wrote:
> +#define REGISTER_VPCI_INIT(f, p)                                        \
> +  static const struct vpci_register_init                                \
> +                      x##_entry __used_section(".data.vpci") = {        \
> +    .init = f,                                                          \
> +    .priority = p,                                                      \
> +}

I think I'd rather see this done by ordering the entries in
.data.vpci suitably, e.g. by adding numeric tags and using SORT()
or some such in the linker script. Iirc upstream Linux did change to
such a model for some of their initialization, so you may be able to
glean something there.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.