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

Re: [PATCH for-4.16] x86/passthrough: Fix hvm_gsi_eoi() build with GCC 12


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Thu, 18 Nov 2021 09:51:52 +0100
  • 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=t2bIi7qqVnbtprCFd8P/L6h6IbLumUmEouKCpGEjL+g=; b=jpnJc2dWjkbEYSd825/8oudT1mKDQBO1PzHOPlNyqyOw0fYoPJL3pDlItYhQWWevrl7NkNojiN3Zn1RhiuEiR7SzJIAvVcYWH/dQBS58XoeAaE7/A0arIE0sQukmce4V4DCO2nYddjB0tJoQyfx9lE3ajDDEYgcFWLTIUqiSw7nwfN8NvDuwbCmjC/tMOeJUfVVuQAGylCAtTrtneP6Yleaoo/S7nJ9qPkvOMDldL1AKpSky1fTSN4zpkWt6bWCkBRdkuq893E9aSovSQ/TMTiOg3DrREc/3lEfQFKdr58AtC4BTCjgbC9KVMNXQTE2uFw+MmP5PA99kdyHcswWLow==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A/bA7djiPnPxd5nxqf3faGe+Gxq8CeWSzr44+Dali7avGX54H1Kg0bDyz3yqo69q5bQm/d5nQ3iGrp6nCedIU1s0WbovSokymJwx+7Mo2DAM/0tdUhtfnWvHJsHDSPf7WOY8KgJp27GusvLgJ8VU/RJiGL5B+xMUCiDllz1bWaM6OvJrP1/feH2RI8LYxKnYu1D0kgz8VfE235VoH47dPHqF1JJ6FbfDdKBDuKGLO50ddZyhMR7OGq+JZ3F+LPQW3ORgNWcIUe+7HmKQEg4nSfiS8CKx+xRHnBv7kMrHojUh5v5VpdClKmKrh7WQtGwfeIOyhwJEztxdpiTBUmkwhw==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Wei Liu <wl@xxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 18 Nov 2021 08:52:11 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 18.11.2021 09:33, Roger Pau Monné wrote:
> On Thu, Nov 04, 2021 at 01:17:53PM +0100, Jan Beulich wrote:
>> On 04.11.2021 11:48, Andrew Cooper wrote:
>>> If your answer is "well actually, we didn't mean to say 'if a GSI is
>>> mapped' in the comment, and here's a different predicate which actually
>>> inspects the state of a dpci object for validity", then fine -  that
>>> will shut the compiler up because you're no longer checking for the
>>> NULLness of a pointer to a sub-object of a non-NULL pointer, but that's
>>> a bugfix which needs backporting several releases too.
>>>
>>> The current logic is not correct, and does not become correct by trying
>>> pass blame to the compiler.
>>
>> I have yet to understand in which way you deem the current logic to not
>> be correct. I'm sorry for being dense.
>>
>>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102967 is the GCC bug, but
>>> the result of it was them persuading me that the diagnostic was
>>> legitimate, even if currently expressed badly.  They've agreed to fix
>>> how it is expressed, but I doubt you'll persuade them that the trigger
>>> for the diagnostic in the first place was wrong.
>>
>> Well, thanks for the pointer in any event. I've commented there as well.
> 
> Did we get any resolution out of this?

I don't think we did. I'm still struggling to understand Andrew's way
of thinking.

> It would be good IMO if we could build out of the box with GCC 12
> instead of having to backport fixes later on.

I guess gcc12 is too far from getting released that there could be any
guarantee for no further issues to get exposed by that point. It has
also been common for us to backport fixes and workarounds when new
compiler versions appear.

I could agree to being proactive if the change to make to our code was
uncontroversial.

Jan




 


Rackspace

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