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

Re: [PATCH v2 2/2] xen: Populate xen.lds.h and make use of its macros


  • To: Julien Grall <julien@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 30 Mar 2022 15:36:24 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sXCp5dTG1hk+GwpOlLv8wCFmJypzbGoC1LH92pS9OiY=; b=A6q8jN4DrSral1fC/RltVEXsAkaY5Z134PruXsNmMIEccPqo9hGeqos6IVhojJSOf3WGeaIaO8Pfe9Qxxdz7eNnniXUtF5Xc61xOyf+AwHmRXOa0SdWeQH/Swwl3FBJbSXdjaHggPDSiJqbRhLWBpRJKIffyR9gSI2yf9+RXbHFCl6Ed5n7ZnpqxKj53vCq53nf4AK4AePgpnXQhQATD8pRiFAUxsV0FfzcwZSrlESR0ttm87Sb26zrsyXg05idAqS0f+51uEENgaWsSS/3jiFs2hqw1BlkgzabH0KsmygHzbFDYQrWbEhzccFBXRu3BKwtQubFgEQzWcfyd24Ikfg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DjG33WhFpXDundW43yA7Y6xLYCNTi46xOhZ3VPBWI+7Uh+DEUMyzEiSXDtnkVYgUYPfVEZ2iJhoUnd+ETJhKwnTiXzz2tCO8eaSrTzxaqP6VWK9M942BMRcU4IaNyu6Dxr7cdlXjGTFUEqZ3WgdA7vgkT5I+ctnpvYn380bJ/utcdpOtUKkD+4q690U32kmtLwSWOWDoN/lEM4ZCpbxWWIhtItH4pn+kkTz/F4cfFewOwgYx952NhEYLEbg3ksAsWjD3gz7y7A3lMhcG3R+xFmyLK+pZ0I2sUY/RlEU436ekx5EZdymSRukAo7N7Fbl+/VrBIvbb9h77OGPx911DLA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx, Michal Orzel <michal.orzel@xxxxxxx>
  • Delivery-date: Wed, 30 Mar 2022 13:36:43 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 30.03.2022 15:30, Julien Grall wrote:
> Hi,
> 
> On 30/03/2022 14:24, Michal Orzel wrote:
>>
>>
>> On 30.03.2022 14:53, Jan Beulich wrote:
>>> On 30.03.2022 14:13, Michal Orzel wrote:
>>>> On 30.03.2022 13:57, Jan Beulich wrote:
>>>>> On 30.03.2022 13:04, Michal Orzel wrote:
>>>>>> On 30.03.2022 12:42, Jan Beulich wrote:
>>>>>>> On 30.03.2022 12:32, Julien Grall wrote:
>>>>>>>> Renaming to PE_COFF may help to avoid the confusion with CONFIG_EFI.
>>>>>>>> That said, it would possibly make more difficult to associate the flag
>>>>>>>> with "linking an EFI binary".
>>>>>>>
>>>>>>> Indeed. And EFI_PE_COFF is getting a little unwieldy for my taste.
>>>>>>>
>>>>>>>> I think some documentaion about the define EFI would be help so there
>>>>>>>> are no more confusion between CONFIG_EFI/EFI. But I am not sure where 
>>>>>>>> to
>>>>>>>> put it. Maybe at the top of the header?
>>>>>>>
>>>>>>> That's perhaps the best place, yes.
>>>>>>>
>>>>>> In this case how about the following comment at the top of xen.lds.h:
>>>>>>
>>>>>> "To avoid any confusion about EFI macro used in this header vs EFI 
>>>>>> support,
>>>>>> the former is used when linking a native EFI (i.e. PE/COFF) binary, 
>>>>>> whereas
>>>>>> the latter means support for generating EFI binary.
>>>>>
>>>>> No, that's the case on Arm only. As Julien suggested, it is perhaps best
>>>>> to explain the difference between EFI and CONFIG_EFI, without going into
>>>>> arch specifics.
>>>> Could you please tell me what you are reffering to as there is no such 
>>>> identifier
>>>> in Xen (as opposed to Linux) like CONFIG_EFI ?
>>>
>>> Let's call it a "virtual" CONFIG_EFI then; I think we really should have
>>> such an option. But yes, if you don't like referring to such a virtual
>>> option, then describing what is meant verbally is certainly going to be
>>> fine.
>>>
>> FWICS, there was an attempt done by Wei in his NUMA series to define 
>> CONFIG_EFI.
>> However as this is not yet merged and agreed, I would like not to refer to 
>> identifiers
>> not existing in the code, even though most people are familiar with this 
>> option from Linux.
>>
>> So by taking an example from Linux I would verbally explain it like that:
>> "To avoid any confusion, please note that EFI macro does not correspond to 
>> EFI
>> runtime support and is used when linking a native EFI (i.e. PE/COFF) binary, 
>> hence its
> 
> "EFI runtime support" can be mistakenly associated to EFI runtime 
> services (which BTW not supported on Arm). So I would suggest to 
> s/runtime/boot/.

Or simply just "EFI support"?

Jan




 


Rackspace

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