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

Re: [PATCH] xen/arm: Initialise memory type for struct kernel_info


  • To: Julien Grall <julien@xxxxxxx>, Luca Fancellu <luca.fancellu@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Mon, 23 Dec 2024 12:43:24 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=xen.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=4Quml13rmf6up0g8BqPhn79ieOGfKN8syZE/6HM6Pkw=; b=PROcQeBV4ZXYy0Fc3vm8j+ax9RwcEdyuEVvPnw7FPd875latskh/NW8c8/0UMWdW/fST4N3yGjxmXN3R/wvdWJMGSxv7nwwiymidLsm3GoFSCLuJc4vpdrUd/KQZBinK52NwBSPiG4Rjqf5td1aouoTQay6rFYNMCh+Cmz4NtrMrC9rrazOA8b/dGgKkDKkopuxCbiwkpHjmq7Fn7Z2LQmqnGic3mdQP7ndApVtT/MJb064z74hzXoVx0bikfikXJWrD6SfL/rpWmTltx546s2xmMXs6a6Z5W1tHXxso4dC7F709PLmPe3nnWvVqE5XJcAjsnMXo1uBQAti15ncwlA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=H5ZxpH8xpfHQAL1Hu/N+GPzLC2hClhEYG4ZJt0rPepWpbimmGB/knadr1Q+txYOgt2eY02n3a98bwBgtImrnH3BGbAJeHP3JiN/TLo1Q5dZIdOzbkgnjL+5LOMMRwCplxKK2kfF3vTwknbjkeHkbr5qN0ZLqmwl9d/n1gtipo1WhJ0jxVOeMFtni2reCSXNsu2z8G9Y7NtVKV6e9nlYvkGu90k9ixJnus/5e51/10BDuJWVAMsvkd/G4GpQ8Ca5n4Yrdci32yMLSnCHp+3tL1b0Zw9LJ8VLOPyaacovbrvNefeui0qU4dmnKU4Avx0r95Wnzhfs8X9xFdTIUTPUt5A==
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Mon, 23 Dec 2024 11:43:50 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 23/12/2024 11:45, Julien Grall wrote:
> 
> 
> Hi,
> 
> On 23/12/2024 10:42, Michal Orzel wrote:
>>
>>
>> On 23/12/2024 11:06, Julien Grall wrote:
>>>
>>>
>>> Hi Michal,
>>>
>>> On 23/12/2024 07:58, Michal Orzel wrote:
>>>>
>>>>
>>>> On 20/12/2024 16:19, Luca Fancellu wrote:
>>>>>
>>>>>
>>>>> Commit a14593e3995a ("xen/device-tree: Allow region overlapping with
>>>>> /memreserve/ ranges") introduced a type in the 'struct membanks_hdr'
>>>>> but forgot to update the 'struct kernel_info' initialiser, while
>>>>> it doesn't lead to failures because the field is not currently
>>>>> used while managing kernel_info structures, it's good to have it
>>>>> for completeness.
>>>> The last part "good to have it" does not sound like we need a Fixes tag.
>>>
>>> Reading the discussion, it sounds like ".type" is not always set and
>>> this is not properly documented. This means that in the future we may
>>> write a patch that requires to use ".type" and needs backported.
>>>
>>> But this would depend on this patch which was not tagged appropriately.
>>> Therefore, I would argue it needs a fixes tag (even though this is a
>>> latent bug) or at least a backport request.
>> Setting explicitly a type for structures not requiring it, does not seem 
>> beneficial for me.
> 
> I have to disagree. If we set type everywhere, then the developer
> doesn't need to think whether ".type" is garbagge or not.
I see, I have nothing against this proposal. But in that case I do think that 
the same needs to apply to max_banks
member.

~Michal




 


Rackspace

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