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

Re: [PATCH 2/3] x86/clang: add retpoline support


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 16 Feb 2022 15:07:51 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=TxFF7yzodAj2dLHF+8uPBkHqQBl/XIXwrFeV8H6HRgI=; b=i1VMKEiS8sTYXBCCF9wKz575Uf6ojFVcmWSS0kX29L+CnwHHsi0JD2LrGorGGEsctta3sjEOsXGlxz0P541sGjpbjkqPbIUHZyePpTYy/yGuv8NjZj6L++IboPyy7Pd3NTMZoTbarrVNLwfiUVsX9AKTIMSM2PIQSdJ6H8p8lKGXLa0EHcugi2oLHf85s7sDrRwIVA6jJ3UdH3pH+cGA9qoy6Zz5qvtK7C3nzNB0ZpiqU7AZaZSI+OtZ1NPGUBlCPBCn4xp400pBY2NdbayFsF6z0EE8fRT8VXn6UxmVkDkmuHHCwb+vp7jffePHJ7+JdTIjzPXk8TkQnZBquXokLw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bqAk/LoloeXzVVP6lc1VNlFZb37vXR0wFssgh90X3dTeG5MCRrcoc9srSlFRKH2FDMnlU0yHDe02JO69bnHQhAkliS0Py+0k4QZ/FzyKZcvBg9EVaGLEjw9jD2MUOZdkLgVIMsWSuXusDDKoEHMMQXUFJ5ZaLFQh2wpb9ZIm29rwJgX6OaH516PsOXsaPjFdVOCZWslOZDnLbfcjBDM7/8qdK9t+nw83KbEqbQp3CR/xxke6/kQM1DyFMfTo7bz0idvXOcUN+0XXf0tYfK+ARLdnsrs0fso1SkNJDDMRej7XmNnlfMxn/cLTRIUa0bRlKYXde4Ar2CPWrF4J3LD2bQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 16 Feb 2022 14:08:01 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 16.02.2022 12:26, Roger Pau Monné wrote:
> On Wed, Feb 16, 2022 at 10:47:52AM +0100, Jan Beulich wrote:
>> On 16.02.2022 10:02, Roger Pau Monne wrote:
>>> Detect whether the compiler supports clang retpoline option and enable
>>> by default if available, just like it's done for gcc.
>>>
>>> Note clang already disables jump tables when retpoline is enabled, so
>>> there's no need to also pass the fno-jump-tables parameter.
>>
>> That's one of the secondary gcc side arrangements. What about the other
>> (-mindirect-branch-register)?
> 
> clang already passes the return address on a register always on amd64
> so that's not needed either. I can add a comment like I've done for
> no-jump-tables.
> 
>>> Reported-by: Jan Beulich <JBeulich@xxxxxxxx>
>>
>> That's Andrew, not me?
> 
> Ops, sorry, I got that mixed up then.

With the adjustments then
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>




 


Rackspace

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