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

Re: [Minios-devel] [UNIKRAFT PATCH 0/3] Modify ctor iteration to end at uk_ctortab_end


  • To: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>, "minios-devel@xxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Wed, 28 Aug 2019 21:07:23 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q6K0AgtJqlMI7ayFQF66QszTzkbmuvyvLQZii3eR48s=; b=RGxQhlb3LqNdQFJzNFDOfp6UV9R/Z3KIGpVmKYaHAElJWHcu8RQ7PQgt1bvzeZTvLqtHTxrqkSgT+ATeiqZp8YhalJ87DeHOSz0GrmbZtwO0iunhnWGCCfNhUu36hJ+fhnWOoi5bv6oVkkXualeZIxyjtjqwK8D6LuM5IpHTbv5vKGF4C9XvkjLRELsQiyOhZUwagyrzNQNVzPUVZlLSl1DbzrIeAlwQaYtj4zT7aIK+ZyWC2XE+toWwEmK23AePaz1GlLDTdDaVTzVPfu4USmAhBLbJ3S1TVkYyNeu9tlPeqZ30N7iQBFRBBDP+OD6Y6lw0CWjxNm7t0P9AQkiyPg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GwRcSQZaV3wDi2cUxsoR/j4zLsbjJRhSV80m5LD68Md0znMrtiKk572TNyNfiWTHJUV/SrZqHzQGmfENFboEf92mKWJI5kuN6hU6ljYahn0Z0NE8J0LhBRPllQ1q6tsjBEYsPNevEA2fS/ZEN5NhPf8VIpV+w2CQbySB762kpod0zYMw/kmPqyimNawgvedga1DgQ01Cq5ss4gV4T43XT1kL2ccbpnWkQXAdNqkQWVnyIMuHiGTlCxNP9fffk1hUtKP9u3AX+BHMQ9Y0gH3kqnCSapiI73pmFykbFXoOXnOo6VLBQgbaAvCPS33X9M/tMwzzuM5xpgo30bS/9DnLHg==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: "sharan.santhanam@xxxxxxxxx" <sharan.santhanam@xxxxxxxxx>
  • Delivery-date: Wed, 28 Aug 2019 21:07:31 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: AQHVXPzKjq3Os3ovvUCtb/q6vzjfnqcQu0mAgABT6AA=
  • Thread-topic: [Minios-devel] [UNIKRAFT PATCH 0/3] Modify ctor iteration to end at uk_ctortab_end

Hey Simon,

Having a single ctors.h seems like the right approach. I'll add the 
proposed changes to the v2 of this patch.

Thanks,

Vlad

On 28.08.2019 19:07, Simon Kuenzer wrote:
> Hey Vlad,
>
> I am actually wondering why we have still have two ctors.h files. With 
> your changes to the table - which I really like - the preinit, init, 
> and unikraft constructor table look and work exactly the same, so I 
> would prefer that we better merge the headers.
>
> The least intrusive option to the current code base would be to move 
> the content from <uk/plat/ctors.h> into <uk/ctors.h>, adapt the naming 
> (ukplat_ctor_* to uk_ctor_*), and adopt boot.c.
> We have then a single place and you could even re-use the foreach 
> macro to iterate over the constructors.
>
> What do you think?
>
> Thanks,
>
> Simon
>
> On 27.08.19 19:28, Vlad-Andrei BĂDOIU (78692) wrote:
>> This patch adds a new variable uk_ctortab_end that points to the ends of
>> the ctortab section. Until now we would have a LONG(0) at the end of the
>> ctortab section which has 32 bits. We could use QUAD(0) or LONG(0)
>> depending on the arch but adding a variable check makes the script arch
>> independent.
>>
>> Vlad-Andrei Badoiu (3):
>>    plat/common: Add uk_ctortab_end in the linker script
>>    lib/ukboot: Modify ctor iteration to end at uk_ctortab_end
>>    plat/*: Move ctortab before rodata on all platforms
>>
>>   include/uk/ctors.h               | 1 +
>>   lib/ukboot/boot.c                | 2 +-
>>   plat/common/include/common.lds.h | 4 ++--
>>   plat/kvm/arm/link64.lds.S        | 5 +++--
>>   plat/linuxu/arm/link.lds.S       | 2 +-
>>   plat/linuxu/x86/link64.lds.S     | 2 +-
>>   plat/xen/arm/link32.lds.S        | 4 ++--
>>   7 files changed, 11 insertions(+), 9 deletions(-)
>>
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

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