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

Re: Backport request (was: [PATCH v2] tools: convert bitfields to unsigned type)


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 6 Jul 2023 10:53:21 +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=2ZpOws28dab5EZe7Whl8rvvBliq7pfyOrkFq1YZ9tdw=; b=RQ8JbAaVISkVEZUa0+IYIjZFgOISTjea22qCpNW/IMJUMzIXmfOh3NtDgHQk8Vcmwqr3+Poy9TcevGoblWj6onKjb1SI/5W2IOMpSMUJL2GMGB0vdH9JsnAaDVPe/ADZ9P8j8z7/JBLFyTSbjubbHP78F5cE49AwOOFT71TTldmaIhs1DR0xNsvRBs6IU2DhWeLlnPKYJ9jj5hQ/2Eje3ZjM7YWzr0Fpkb2ycUkYhX/rzlY4BrMWyqejrw5fd6AzWCRYmWJa27KhZiSQZa/zN/nNgpcLKElVDdkmXWdKtzl9XWgVr8HM4D72Nmwxho3BUVysOvKTCSyvGbraDfOEpA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MJC6R65WUuCBJ5kDEh/FEAPz+gG4QLRu4aCamMi2I9VQ9ieE+F6551G5pOU/s8mWcq5mQr7PJCJhUj3Rsmk80ukdt+6+7izrXxJGd7dZmWh8UbrRCxjQ05ZpCu8Uoj4KZBCHt2WM/GjhLYipbhfJBelrCqFRDCHGFqGvwzWLqXQ7VU3EnHsQZAVMu3qiZy4zgqUGDKjAO8Lpv+zgygHWhbGOZ/v2a/hdnrx6qZaxRh4OYNrPJIw+3Y4Dp3g5s/gIKGq5zUp6wIUvpKKL1B72eCGJ3t2LqDf4sd8KRKHot8QXd/s4AXYyxC+yiS+ZFRyM26/gKhZtJJCl/iwHYtilYQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx, Wei Liu <wl@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Thu, 06 Jul 2023 08:53:41 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 04.07.2023 18:16, Jan Beulich wrote:
> On 04.07.2023 18:10, Roger Pau Monné wrote:
>> On Tue, Jul 04, 2023 at 06:04:36PM +0200, Jan Beulich wrote:
>>> On 04.07.2023 17:55, Roger Pau Monné wrote:
>>>> On Tue, Jul 04, 2023 at 05:42:33PM +0200, Jan Beulich wrote:
>>>>> Plus is the mentioned
>>>>> "potential ABI change" safe to take on a stable branch? There's not going 
>>>>> to
>>>>> be any SONAME change ...
>>>>
>>>> Is there any ABI change in practice? Both fields will still have a 1bit
>>>> size.
>>>
>>> But what a consumer of the interface reads out of such a field would change
>>> in case their compiler settings arrange for signed bitfields when signedness
>>> isn't explicit. We don't dictate, after all, what compiler settings to use
>>> with our interfaces (which generally is good, but which bites us here).
>>
>> Hm, I see.  I would argue that sign doesn't matter here, as those are
>> intended to be booleans, so anything different than 0 would map to
>> `true`.  But implementation might have hard coded TRUE to -1, and the
>> change would then break them?
> 
> That's a possible scenario I'm wary of here, yes.
> 
>> I'm failing to see that, because those implementations would still use
>> the old struct declarations they have been built with, and hence would
>> still threat it as signed?
> 
> Until they rebuild against the updated header, without any change to
> their code.
> 
> Anthony - do you have any thoughts here?

Btw in the meantime I'll queue the uncontroversial part of the patch
for backport (with a respective not about what was dropped).

Jan



 


Rackspace

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